FenceQueryRequest

public abstract class FenceQueryRequest extends Object
implements Parcelable

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

Defines the interface for querying fences in the FenceApi.

Inherited Constant Summary

Public Method Summary

static FenceQueryRequest
all()
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.
static FenceQueryRequest
forFences(String... fenceKeys)
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.
static FenceQueryRequest
forFences(Collection<String> fenceKeys)
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.

Inherited Method Summary

Public Methods

public static FenceQueryRequest all ()

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.

Query all the fences from the FenceApi instance corresponding to the calling package.

public static FenceQueryRequest forFences (String... fenceKeys)

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.

Query the defined fences for the given keys.

Parameters
fenceKeys Fence keys for querying fences in the FenceApi. The fence keys should not be null.
Throws
NullPointerException if the collection of fence keys is null.
IllegalArgumentException if any of the fence keys in the fence keys collection is null or empty.

public static FenceQueryRequest forFences (Collection<String> fenceKeys)

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.

Query the Awareness Manager Fences for the given keys.

Parameters
fenceKeys that should be used for querying fences in the FenceApi. The Collection should not be null and should only contain non null valid fence keys.
Throws
NullPointerException if the Collection of fence keys is null.
IllegalArgumentException if any of the fence key in the Collection is null or empty.