FenceClient | Doclava
public class

FenceClient

extends GoogleApi<AwarenessOptions>
java.lang.Object
   ↳ com.google.android.gms.common.api.GoogleApi<com.google.android.gms.awareness.AwarenessOptions>
     ↳ com.google.android.gms.awareness.FenceClient

Class Overview

Main entry point for the Awareness Fence API.

See also:

Summary

Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public Task<FenceQueryResponse> queryFences (FenceQueryRequest fenceQueryRequest)

Queries the state of a registered fence in the Awareness API.

Parameters
fenceQueryRequest FenceQueryRequest: A request encapsulating the query criteria parameters.
Returns
Task<FenceQueryResponse> a Task with a FenceQueryResponse.

public Task<Void> updateFences (FenceUpdateRequest fenceUpdateRequest)

Adds or removes a set of fences that are registered with the Awareness API.

Parameters
fenceUpdateRequest FenceUpdateRequest: A request indicating a batch of fences to add and/or remove.
Returns
Task<Void> a Task. Use isSuccessful() to determine success or failure.