Puoi utilizzare l'API Snapshot per ottenere informazioni sull'ambiente attuale dell'utente. Con l'API Snapshot puoi accedere a una serie di indicatori di contesto:
Attività utente rilevata, ad esempio quando camminano o guidano.
Beacon nelle vicinanze registrati.
Stato delle cuffie, collegato o meno.
Posizione, che include latitudine e longitudine.
Il sistema memorizza nella cache questi valori in modo che possano essere restituiti rapidamente. In assenza di dati, vengono eseguite l'inferenza, il rilevamento e il reso dei valori aggiornati per lo stato.
L'API Aware restituisce il tipo di dati esistente per i tipi di contesto con un'API pubblica.
[null,null,["Ultimo aggiornamento 2023-09-14 UTC."],[[["The Places and Weather contextual signals within the Awareness API are deprecated and have been turned off, with existing implementations restricted until specified dates."],["Developers should utilize the Places SDK for Android instead of the Places contextual signal for new implementations."],["Google does not offer alternative functionality for the Weather contextual signal, impacting existing implementations relying on it."],["The Awareness API continues to provide other contextual signals through the Snapshot API, including user activity, nearby beacons, headphone state, and location."],["Developers can access these signals using corresponding Snapshot API methods and retrieve relevant data for their applications."]]],[]]