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 ()

Since: API Level 1

Public Methods

public void dispatchChange (boolean selfChange)

Since: API Level 1

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)

Since: API Level 1

invokes onChange on each observer

public void registerObserver (ContentObserver observer)

Since: API Level 1

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

Parameters
observer the observer to register