public class

ContentObservable

extends Observable<T>
java.lang.Object
   ↳ android.database.Observable<T>
     ↳ android.database.ContentObservable

Class Overview

A specialization of Observable for ContentObserver that provides methods for invoking the various callback methods of ContentObserver.

Summary

[Expand]
Inherited Fields
From class android.database.Observable
Public Constructors
ContentObservable()
Public Methods
void dispatchChange(boolean selfChange)
invokes dispatchUpdate on each observer, unless the observer doesn't want self-notifications and the update is from a self-notification
void notifyChange(boolean selfChange)
invokes onChange on each observer
void registerObserver(ContentObserver observer)
Adds an observer to the list.
[Expand]
Inherited Methods
From class android.database.Observable
From class java.lang.Object

Public Constructors

public ContentObservable ()

Public Methods

public void dispatchChange (boolean selfChange)

invokes dispatchUpdate on each observer, unless the observer doesn't want self-notifications and the update is from a self-notification

public void notifyChange (boolean selfChange)

invokes onChange on each observer

public void registerObserver (ContentObserver observer)

Adds an observer to the list. The observer cannot be null and it must not already be registered.

Parameters
observer the observer to register