com.google.android.gms.awareness.fence

  • FenceQueryResult and FenceStateMap are interfaces for querying and representing fence states.

  • FenceUpdateRequest is an interface for adding and removing multiple fences.

  • AwarenessFence is a class that combines context conditions to trigger callbacks.

  • Specific classes like BeaconFence, DetectedActivityFence, HeadphoneFence, LocationFence, and TimeFence are used to create different types of fences.

  • FenceQueryRequest and FenceQueryResponse are classes for querying fence states, and FenceState encapsulates the state of a fence.

Interfaces

FenceQueryResult Result for query fence states Api  
FenceStateMap A map of fence states keyed off of the fence keys resulting from a FenceQueryRequest
FenceUpdateRequest Request to add and/or remove multiple fences. 

Classes

AwarenessFence A combination of conditions on two or more types of context, which trigger a callback to the app when satisfied. 
BeaconFence Use this class to create beacon fences. 
DetectedActivityFence Use this class to create activity-based fences. 
FenceQueryRequest Defines the interface for querying fences in the FenceApi
FenceQueryResponse Result for query fence states Api  
FenceState Encapsulates the state of a fence in AwarenessFence
FenceUpdateRequest.Builder Builder for a FenceUpdateRequest
HeadphoneFence Use this class to create headphone state fences. 
LocationFence Use this class to create location-based fences. 
TimeFence Use this class to create time-based fences.