FenceClient
Stay organized with collections
Save and categorize content based on your preferences.
Main entry point for the Awareness Fence API.
Inherited Field Summary
From class com.google.android.gms.common.api.GoogleApi
protected final GoogleApiManager |
zabo |
|
Inherited Method Summary
From class com.google.android.gms.common.api.GoogleApi
GoogleApiClient
|
asGoogleApiClient
()
|
ClientSettings.Builder |
createClientSettingsBuilder
()
|
Task< Boolean
> |
disconnectService
()
|
<A extends Api.AnyClient, T extends ApiMethodImpl<? extends Result
, A>>
T |
doBestEffortWrite
(T arg0)
|
<TResult, A extends Api.AnyClient>
Task<TResult> |
doBestEffortWrite
(TaskApiCall<A, TResult> arg0)
|
<A extends Api.AnyClient, T extends ApiMethodImpl<? extends Result
, A>>
T |
doRead
(T arg0)
|
<TResult, A extends Api.AnyClient>
Task<TResult> |
doRead
(TaskApiCall<A, TResult> arg0)
|
<A extends Api.AnyClient> Task< Void
> |
doRegisterEventListener
(RegistrationMethods<A, ?>
arg0)
|
<A extends Api.AnyClient, T extends RegisterListenerMethod<A, ?>, U extends UnregisterListenerMethod<A, ?>>
Task< Void
> |
doRegisterEventListener
(T arg0, U arg1)
|
Task< Boolean
> |
doUnregisterEventListener
(ListenerKey<?>
arg0)
|
<TResult, A extends Api.AnyClient>
Task<TResult> |
doWrite
(TaskApiCall<A, TResult>
arg0)
|
<A extends Api.AnyClient, T extends ApiMethodImpl<? extends Result
, A>>
T |
doWrite
(T arg0)
|
final Api
< AwarenessOptions
> |
getApi
()
|
ApiKey< AwarenessOptions
> |
getApiKey
()
|
AwarenessOptions
|
getApiOptions
()
|
Context
|
getApplicationContext
()
|
final int |
getInstanceId
()
|
Looper
|
getLooper
()
|
<L> ListenerHolder<L> |
registerListener
(L arg0, String
arg1)
|
zace |
|
Api.Client |
|
From class java.lang.Object
From interface
com.google.android.gms.common.api.HasApiKey
Public Methods
Queries the state of a registered fence in the Awareness API.
Parameters
fenceQueryRequest
A request encapsulating the query criteria parameters.
Adds or removes a set of fences that are registered with the Awareness API.
Parameters
fenceUpdateRequest
A request indicating a batch of fences to add and/or remove.
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\u003e\u003ccode\u003eFenceClient\u003c/code\u003e is the primary entry point for interacting with the Awareness Fence API in Google Play services.\u003c/p\u003e\n"],["\u003cp\u003eIt allows you to register, update, and query the status of fences using \u003ccode\u003eupdateFences()\u003c/code\u003e and \u003ccode\u003equeryFences()\u003c/code\u003e methods.\u003c/p\u003e\n"],["\u003cp\u003eFences trigger actions based on user context, such as location, activity, or time.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the Awareness API Guide for detailed documentation and implementation instructions.\u003c/p\u003e\n"]]],[],null,[]]