FenceStateMap

public interface FenceStateMap

This interface 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.

A map of fence states keyed off of the fence keys resulting from a FenceQueryRequest.

Public Method Summary

abstract Set<String>
getFenceKeys()
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.
abstract FenceState
getFenceState(String fenceKey)
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.

Public Methods

public abstract Set<String> getFenceKeys ()

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.

Returns the Set of fence keys that are contained in this FenceStateMap.

public abstract FenceState getFenceState (String fenceKey)

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.

Returns a FenceState for the given fence key. If no FenceState is found null is returned.