com.google.android.gms.awareness
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003eThe \u003ccode\u003eFenceApi\u003c/code\u003e and \u003ccode\u003eSnapshotApi\u003c/code\u003e interfaces are deprecated and should be replaced with \u003ccode\u003eFenceClient\u003c/code\u003e and \u003ccode\u003eSnapshotClient\u003c/code\u003e respectively, accessible via the \u003ccode\u003eAwareness\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAwareness\u003c/code\u003e serves as the primary entry point for utilizing the Awareness service.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should utilize \u003ccode\u003eFenceClient\u003c/code\u003e for interacting with the Awareness Fence API and \u003ccode\u003eSnapshotClient\u003c/code\u003e for the Awareness Snapshot API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAwarenessStatusCodes\u003c/code\u003e provides specific status codes for the Awareness service, used in conjunction with \u003ccode\u003egetStatusCode()\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `FenceApi` and `SnapshotApi` interfaces are deprecated; developers should use `getFenceClient(Activity)` and `getSnapshotClient(Activity)` instead. The `Awareness` class serves as the main entry for the Awareness service. `AwarenessStatusCodes` provides specific status codes. `FenceClient` and `SnapshotClient` are the primary entry points for the Awareness Fence and Snapshot APIs, respectively. These are the actions and elements that compose the API for awareness in android development.\n"],null,["# com.google.android.gms.awareness\n\n### Interfaces\n\n|--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FenceApi](/android/reference/com/google/android/gms/awareness/FenceApi) | *This interface is deprecated. Use [getFenceClient(Activity)](/android/reference/com/google/android/gms/awareness/Awareness#getFenceClient(android.app.Activity)) instead.* |\n| [SnapshotApi](/android/reference/com/google/android/gms/awareness/SnapshotApi) | *This interface is deprecated. Use [getSnapshotClient(Activity)](/android/reference/com/google/android/gms/awareness/Awareness#getSnapshotClient(android.app.Activity)) instead.* |\n\n### Classes\n\n|--------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| [Awareness](/android/reference/com/google/android/gms/awareness/Awareness) | The main entry point for the Awareness service. |\n| [AwarenessStatusCodes](/android/reference/com/google/android/gms/awareness/AwarenessStatusCodes) | Awareness specific status codes, for use in [getStatusCode()](/android/reference/com/google/android/gms/common/api/Status#getStatusCode()). |\n| [FenceClient](/android/reference/com/google/android/gms/awareness/FenceClient) | Main entry point for the Awareness Fence API. |\n| [SnapshotClient](/android/reference/com/google/android/gms/awareness/SnapshotClient) | Main entry point for the Awareness Snapshot API. |"]]