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

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

SelfContentObserver

Added in API level 1
public SelfContentObserver (AbstractCursor cursor)

Parameters
cursor AbstractCursor

Public methods

deliverSelfNotifications

Added in API level 1
public 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
public 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.