com.google.android.gms.awareness.fence
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 Awareness API provides interfaces and classes for managing fences, which are conditions that trigger callbacks when met.\u003c/p\u003e\n"],["\u003cp\u003eInterfaces like \u003ccode\u003eFenceQueryResult\u003c/code\u003e and \u003ccode\u003eFenceStateMap\u003c/code\u003e handle fence query results and states.\u003c/p\u003e\n"],["\u003cp\u003eClasses such as \u003ccode\u003eAwarenessFence\u003c/code\u003e, \u003ccode\u003eLocationFence\u003c/code\u003e, and \u003ccode\u003eTimeFence\u003c/code\u003e enable the creation of various types of fences based on context like location, time, and activities.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFenceUpdateRequest\u003c/code\u003e and its builder facilitate adding and removing fences, while \u003ccode\u003eFenceQueryRequest\u003c/code\u003e and \u003ccode\u003eFenceQueryResponse\u003c/code\u003e are used for querying existing fences.\u003c/p\u003e\n"],["\u003cp\u003eFence states are encapsulated in the \u003ccode\u003eFenceState\u003c/code\u003e class, providing information about the status of a specific fence.\u003c/p\u003e\n"]]],[],null,[]]