ContentObserver
public
abstract
class
ContentObserver
extends Object
| java.lang.Object | |
| ↳ | android.database.ContentObserver |
Receives call backs for changes to content.
Must be implemented by objects which are added to a ContentObservable.
Summary
Public constructors | |
|---|---|
ContentObserver(Handler handler)
Creates a content observer. |
|
Public methods | |
|---|---|
boolean
|
deliverSelfNotifications()
Returns true if this observer is interested receiving self-change notifications. |
final
void
|
dispatchChange(boolean selfChange)
This method was deprecated
in API level 16.
Callers should migrate towards using a richer overload that
provides more details about the change, such as
|
final
void
|
dispatchChange(boolean selfChange, Uri uri)
Dispatches a change notification to the observer. |
final
void
|
dispatchChange(boolean selfChange, Uri uri, int flags)
Dispatches a change notification to the observer. |
final
void
|
dispatchChange(boolean selfChange, Collection<Uri> uris, int flags)
Dispatches a change notification to the observer. |
void
|
onChange(boolean selfChange, Uri uri, int flags)
This method is called when a content change occurs. |
void
|
onChange(boolean selfChange)
This method is called when a content change occurs. |
void
|
onChange(boolean selfChange, Uri uri)
This method is called when a content change occurs. |
void
|
onChange(boolean selfChange, Collection<Uri> uris, int flags)
This method is called when a content change occurs. |
Inherited methods | |
|---|---|