คุณสามารถใช้ Snapshot API เพื่อดูข้อมูลเกี่ยวกับสภาพแวดล้อมปัจจุบันของผู้ใช้ Snapshot API ช่วยให้คุณเข้าถึงสัญญาณตามบริบทได้หลากหลาย ดังนี้
กิจกรรมของผู้ใช้ที่ตรวจพบ เช่น ขณะเดินหรือขับรถ
บีคอนใกล้เคียงที่คุณลงทะเบียนไว้
สถานะหูฟังว่าเสียบอยู่หรือไม่
ตำแหน่ง ซึ่งรวมถึงละติจูดและลองจิจูด
ระบบจะแคชค่าเหล่านี้เพื่อให้แสดงผลได้อย่างรวดเร็ว หากไม่มีข้อมูล ระบบจะทำการรับรู้และการอนุมานเพื่อแสดงค่าสถานะใหม่
Awareness API จะแสดงผลประเภทข้อมูลที่มีอยู่สําหรับประเภทบริบทที่มี API สาธารณะ
[null,null,["อัปเดตล่าสุด 2025-06-12 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."]]],[]]