Skip to content

Most visited

Recently visited

navigation
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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.