Most visited

Recently visited

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

From class android.database.ContentObserver
From class java.lang.Object

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.

Hooray!