FileDocCategorySizeDatePackage
ContentObservable.javaAPI DocAndroid 1.5 API1813Wed May 06 22:41:54 BST 2009android.database

ContentObservable

public class ContentObservable extends Observable
A specialization of Observable for ContentObserver that provides methods for invoking the various callback methods of ContentObserver.

Fields Summary
Constructors Summary
Methods Summary
public voiddispatchChange(boolean selfChange)
invokes dispatchUpdate on each observer, unless the observer doesn't want self-notifications and the update is from a self-notification

param
selfChange

        synchronized(mObservers) {
            for (ContentObserver observer : mObservers) {
                if (!selfChange || observer.deliverSelfNotifications()) {
                    observer.dispatchChange(selfChange);
                }
            }
        }
    
public voidnotifyChange(boolean selfChange)
invokes onChange on each observer

param
selfChange

        synchronized(mObservers) {
            for (ContentObserver observer : mObservers) {
                observer.onChange(selfChange);
            }
        }
    
public voidregisterObserver(ContentObserver observer)

        super.registerObserver(observer);