Android.App.AppSearch.Observers Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides callbacks, change information, and schema filters for observing changes to AppSearch data.
Classes
| Name | Description |
|---|---|
| DocumentChangeInfo |
Contains information about an individual change detected by an |
| ObserverSpec |
Configures the types, namespaces and other properties that |
| ObserverSpec.Builder |
Builder for |
| ObserverSpec.InterfaceConsts |
Contains constants from the Java interfaces implemented by ObserverSpec. |
| SchemaChangeInfo |
Contains information about a schema change detected by an |
Interfaces
| Name | Description |
|---|---|
| IObserverCallback |
An interface which apps can implement to subscribe to notifications of changes to AppSearch data. |
Remarks
Implement IObserverCallback to receive document and schema change notifications. DocumentChangeInfo identifies changed documents, and SchemaChangeInfo identifies changed schema types.
Use ObserverSpec.Builder to select schema types for an observer. An empty schema filter matches all schema types. Document changes caused by schema migration are reported as schema changes, not as individual document changes.
Android observer callback reference , document change reference, and observer specification reference.