BeaconState.TypeFilter

  • BeaconState.TypeFilter is an abstract class that extends Object and implements Parcelable.

  • It is used to specify the type of beacon to match, either by namespace and type, or by namespace, type, and content.

  • The class includes static methods with to create instances of BeaconState.TypeFilter with different matching criteria.

  • BeaconState.TypeFilter inherits methods from both java.lang.Object and android.os.Parcelable.

public static abstract class BeaconState.TypeFilter 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.

The type of beacon to match. Beacons can be specified by either:

  • A String match on both the namespace and type associated with the beacon.
  • A String match on the namespace, type, and byte-for-byte match on the content.

Inherited Constant Summary

Public Method Summary

static BeaconState.TypeFilter
with(String namespace, String type)
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 BeaconState.TypeFilter
with(String namespace, String type, byte[] content)
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 BeaconState.TypeFilter with (String namespace, String type)

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.

Creates a BeaconState.TypeFilter that matches against beacons with the given namespace and type, regardless of the content.

Parameters
namespace Beacon namespace to match against.
type beacon Type to match against.

public static BeaconState.TypeFilter with (String namespace, String type, byte[] content)

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.

Creates a BeaconState.TypeFilter that matches against beacons with the given namespace, type, and content.

Parameters
namespace Beacon namespace to match against.
type beacon Type to match against.
content Beacon context to match against. This must be an exact byte-for-byte match for the content.