AI-generated Key Takeaways
-
BeaconState.BeaconInfo
provides information about a single beacon, including its namespace, type, and any associated content. -
You can access the beacon's namespace, type, and content using the
getNamespace()
,getType()
, andgetContent()
methods, respectively. -
The
getContent()
method returns the content of the beacon attachment as a byte array, or null if no content exists.
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.