added in API level 1

AbstractCursor.SelfContentObserver

protected static class AbstractCursor.SelfContentObserver
extends ContentObserver

java.lang.Object
   ↳ android.database.ContentObserver
     ↳ android.database.AbstractCursor.SelfContentObserver


Cursors use this class to track changes others make to their URI.

Summary

Public constructors

AbstractCursor.SelfContentObserver(AbstractCursor cursor)

Public methods

boolean deliverSelfNotifications()

Returns true if this observer is interested receiving self-change notifications.

void onChange(boolean selfChange)

This method is called when a content change occurs.

Inherited methods

Public constructors

AbstractCursor.SelfContentObserver

added in API level 1
AbstractCursor.SelfContentObserver (AbstractCursor cursor)

Parameters
cursor AbstractCursor

Public methods

deliverSelfNotifications

added in API level 1
boolean deliverSelfNotifications ()

Returns true if this observer is interested receiving self-change notifications. Subclasses should override this method to indicate whether the observer is interested in receiving notifications for changes that it made to the content itself.

Returns
boolean True if self-change notifications should be delivered to the observer.

onChange

added in API level 1
void onChange (boolean selfChange)

This method is called when a content change occurs.

Subclasses should override this method to handle content changes.

Parameters
selfChange boolean: True if this is a self-change notification.