BeaconState.BeaconInfo

  • BeaconState.BeaconInfo is an interface providing information about a single beacon.

  • It includes methods to retrieve the beacon's content as a byte array, its namespace, and its type.

  • The getContent() method returns the byte array content if an attachment exists, otherwise null.

  • The getNamespace() and getType() methods return the beacon's namespace and type respectively.

public static interface BeaconState.BeaconInfo

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.

Information from one beacon.

Public Method Summary

abstract byte[]
getContent()
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 String
getNamespace()
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 String
getType()
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 byte[] getContent ()

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.

Return the byte array content of the beacon attachment if it exists.

Returns
  • Content of the beacon attachment, or null if there is no content.

public abstract String getNamespace ()

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.

Return the beacon namespace.

Returns
  • Namespace of the beacon attachment.

public abstract String getType ()

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.

Return the beacon type.

Returns
  • Type of the beacon attachment.