com.google.android.gms.appsearch.observer
Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
ObserverCallback
|
An interface which apps can implement to subscribe
to notifications of changes to AppSearch data. |
Classes
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["The ObserverCallback interface enables apps to subscribe to notifications for changes in AppSearch data."],["DocumentChangeInfo and SchemaChangeInfo provide details on specific document and schema changes detected by the ObserverCallback."],["ObserverSpec, configurable using ObserverSpec.Builder, defines the criteria (types, namespaces, etc.) for ObserverCallback instances to match against for triggering notifications."]]],["Apps utilize the `ObserverCallback` interface to receive notifications about AppSearch data changes. `ObserverSpec` configures which changes trigger these notifications, defining specific types and namespaces. `ObserverSpec.Builder` facilitates the creation of these configurations. `DocumentChangeInfo` details individual data changes, while `SchemaChangeInfo` provides information on schema updates. The `ObserverCallback` receives these change notifications as defined by `ObserverSpec`.\n"]]