public interface

FenceApi

com.google.android.gms.awareness.FenceApi

Class Overview

Main entry point for the Awareness Fence API.

The methods must be used in conjunction with a GoogleApiClient instance. For example:


     new GoogleApiClient.Builder(context)
             .addApi(Awareness.API)
             .addConnectionCallbacks(this)
             .addOnConnectionFailedListener(this)
             .build()
 

See also:

Summary

Public Methods
abstract PendingResult<FenceQueryResult> queryFences(GoogleApiClient client, FenceQueryRequest fenceQueryRequest)
Query the state of a registered fence in the Awareness API.
abstract PendingResult<Status> updateFences(GoogleApiClient client, FenceUpdateRequest fenceUpdateRequest)
Add or remove a set of fences that are registered with the Awareness API.

Public Methods

public abstract PendingResult<FenceQueryResult> queryFences (GoogleApiClient client, FenceQueryRequest fenceQueryRequest)

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

Parameters
client GoogleApiClient: A GoogleApiClient instance.
fenceQueryRequest FenceQueryRequest: A request encapsulating the query criteria parameters.
Returns
PendingResult<FenceQueryResult> a PendingResult with a FenceQueryResult.

public abstract PendingResult<Status> updateFences (GoogleApiClient client, FenceUpdateRequest fenceUpdateRequest)

Add or remove a set of fences that are registered with the Awareness API.

Parameters
client GoogleApiClient: A GoogleApiClient instance.
fenceUpdateRequest FenceUpdateRequest: A request indicating a batch of fences to add and/or remove.
Returns
PendingResult<Status> a PendingResult with Status indicating success or failure.