AI-generated Key Takeaways
-
FenceClient
is the primary entry point for interacting with the Awareness Fence API in Google Play services. -
It allows you to register, update, and query the status of fences using
updateFences()
andqueryFences()
methods. -
Fences trigger actions based on user context, such as location, activity, or time.
-
Refer to the Awareness API Guide for detailed documentation and implementation instructions.
Main entry point for the Awareness Fence API.
See Also
Inherited Field Summary
Public Method Summary
Task<FenceQueryResponse> |
queryFences(FenceQueryRequest
fenceQueryRequest)
Queries the state of a registered fence in the Awareness API.
|
Task<Void> |
updateFences(FenceUpdateRequest
fenceUpdateRequest)
Adds or removes a set of fences that are registered with the Awareness API.
|
Inherited Method Summary
Public Methods
public Task<FenceQueryResponse> queryFences (FenceQueryRequest fenceQueryRequest)
Queries the state of a registered fence in the Awareness API.
Parameters
fenceQueryRequest | A request encapsulating the query criteria parameters. |
---|
Returns
- a
Task
with aFenceQueryResponse
.
public Task<Void> updateFences (FenceUpdateRequest fenceUpdateRequest)
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. |
---|
Returns
- a
Task
. UseisSuccessful()
to determine success or failure.