FenceClient

public class FenceClient extends GoogleApi<AwarenessOptions>

Main entry point for the Awareness Fence API.

Inherited Field Summary

protected final GoogleApiManager zabo

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

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
zaa(Context arg0, Handler arg1)
Api.Client
zaa(Looper arg0, zaa<AwarenessOptions> arg1)
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
abstract ApiKey<O>
getApiKey()

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

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