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


游标使用此类来跟踪其他人对其URI所做的更改。

摘要(Summary)

Public constructors

AbstractCursor.SelfContentObserver(AbstractCursor cursor)

公共方法(Public methods)

boolean deliverSelfNotifications()

如果此观察者有兴趣接收自我更改通知,则返回true。

void onChange(boolean selfChange)

内容更改时会调用此方法。

继承方法(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 ()

如果此观察者有兴趣接收自我更改通知,则返回true。 子类应该重写此方法以指示观察者是否有兴趣接收它对内容本身所做的更改的通知。

返回(Returns)
boolean True if self-change notifications should be delivered to the observer.

onChange

Added in API level 1
void onChange (boolean selfChange)

内容更改时会调用此方法。

子类应该重写此方法来处理内容更改。

参数(Parameters)
selfChange boolean: True if this is a self-change notification.

Hooray!