AI-generated Key Takeaways
-
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()
andgetType()
methods return the beacon's namespace and type respectively.
Information from one beacon.
Public Method Summary
abstract byte[] |
getContent()
Return the byte array content of the beacon attachment if it exists.
|
abstract String |
getNamespace()
Return the beacon namespace.
|
abstract String |
getType()
Return the beacon type.
|
Public Methods
public abstract byte[] getContent ()
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 ()
Return the beacon namespace.
Returns
- Namespace of the beacon attachment.
public abstract String getType ()
Return the beacon type.
Returns
- Type of the beacon attachment.