public abstract class

ContentObserver

extends Object
java.lang.Object
   ↳ android.database.ContentObserver
Known Direct Subclasses

Class Overview

Receives call backs for changes to content. Must be implemented by objects which are added to a ContentObservable.

Summary

Public Constructors
ContentObserver(Handler handler)
onChange() will happen on the provider Handler.
Public Methods
boolean deliverSelfNotifications()
Returns true if this observer is interested in notifications for changes made through the cursor the observer is registered with.
final void dispatchChange(boolean selfChange)
void onChange(boolean selfChange)
This method is called when a change occurs to the cursor that is being observed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ContentObserver (Handler handler)

onChange() will happen on the provider Handler.

Parameters
handler The handler to run onChange(boolean) on.

Public Methods

public boolean deliverSelfNotifications ()

Returns true if this observer is interested in notifications for changes made through the cursor the observer is registered with.

public final void dispatchChange (boolean selfChange)

public void onChange (boolean selfChange)

This method is called when a change occurs to the cursor that is being observed.

Parameters
selfChange true if the update was caused by a call to commit on the cursor that is being observed.