Page Summary
-
FenceClient is the main entry point for the Awareness Fence API.
-
The
queryFencesmethod is used to query the state of a registered fence in the Awareness API. -
The
updateFencesmethod is used to add or remove a set of fences that are registered with the Awareness API.
This class is deprecated.The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement.
Main entry point for the Awareness Fence API.
See Also
Public Method Summary
| Task< FenceQueryResponse > | queryFences
( FenceQueryRequest
fenceQueryRequest)
This method is deprecated. The Awareness API is deprecated and will be
turned down in a future Google Play services release, as early as January 2027.
There is no direct replacement.
|
| Task< Void > | updateFences
( FenceUpdateRequest
fenceUpdateRequest)
This method is deprecated. The Awareness API is deprecated and will be
turned down in a future Google Play services release, as early as January 2027.
There is no direct replacement.
|
Inherited Method Summary
Public Methods
public Task< FenceQueryResponse > queryFences ( FenceQueryRequest fenceQueryRequest)
This method is deprecated.The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement.
Queries the state of a registered fence in the Awareness API.
Parameters
Returns
- a
Taskwith aFenceQueryResponse.
public Task< Void > updateFences ( FenceUpdateRequest fenceUpdateRequest)
This method is deprecated.The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement.
Adds or removes a set of fences that are registered with the Awareness API.
Parameters
Returns
- a
Task. UseTask.isSuccessful()to determine success or failure.

