ObserverCallback
interface ObserverCallback
android.app.appsearch.observer.ObserverCallback |
An interface which apps can implement to subscribe to notifications of changes to AppSearch data.
Summary
Public methods | |
---|---|
abstract Unit |
onDocumentChanged(changeInfo: DocumentChangeInfo) Callback to trigger after document changes (documents added, updated or removed). |
abstract Unit |
onSchemaChanged(changeInfo: SchemaChangeInfo) Callback to trigger after schema changes (schema type added, updated or removed). |
Public methods
onDocumentChanged
abstract fun onDocumentChanged(changeInfo: DocumentChangeInfo): Unit
Callback to trigger after document changes (documents added, updated or removed).
Parameters | |
---|---|
changeInfo |
DocumentChangeInfo: Information about the nature of the change. This value cannot be null . |
onSchemaChanged
abstract fun onSchemaChanged(changeInfo: SchemaChangeInfo): Unit
Callback to trigger after schema changes (schema type added, updated or removed).
Parameters | |
---|---|
changeInfo |
SchemaChangeInfo: Information about the nature of the change. This value cannot be null . |