BeaconState.BeaconInfo
Stay organized with collections
Save and categorize content based on your preferences.
Information from one beacon.
Public Method Summary
abstract byte[] |
getContent()
Return the byte array content of the beacon attachment if it exists.
|
abstract String
|
|
abstract String
|
|
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 ()
Returns
- Type of the beacon attachment.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eBeaconState.BeaconInfo\u003c/code\u003e provides information about a single beacon, including its namespace, type, and any associated content.\u003c/p\u003e\n"],["\u003cp\u003eYou can access the beacon's namespace, type, and content using the \u003ccode\u003egetNamespace()\u003c/code\u003e, \u003ccode\u003egetType()\u003c/code\u003e, and \u003ccode\u003egetContent()\u003c/code\u003e methods, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetContent()\u003c/code\u003e method returns the content of the beacon attachment as a byte array, or null if no content exists.\u003c/p\u003e\n"]]],["`BeaconState.BeaconInfo` provides information about a beacon. Key actions include retrieving the beacon's content, namespace, and type. `getContent()` returns the byte array content of the beacon's attachment or null if no content exists. `getNamespace()` returns the beacon's namespace. `getType()` returns the beacon's attachment type. These methods are used to access specific attributes of the beacon.\n"],null,["# BeaconState.BeaconInfo\n\npublic static interface **BeaconState.BeaconInfo** \nInformation from one beacon. \n\n### Public Method Summary\n\n|----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract byte\\[\\] | [getContent](/android/reference/com/google/android/gms/awareness/state/BeaconState.BeaconInfo#getContent())() Return the byte array content of the beacon attachment if it exists. |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | [getNamespace](/android/reference/com/google/android/gms/awareness/state/BeaconState.BeaconInfo#getNamespace())() Return the beacon namespace. |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | [getType](/android/reference/com/google/android/gms/awareness/state/BeaconState.BeaconInfo#getType())() Return the beacon type. |\n\nPublic Methods\n--------------\n\n#### public abstract byte\\[\\]\n**getContent** ()\n\nReturn the byte array content of the beacon attachment if it exists. \n\n##### Returns\n\n- Content of the beacon attachment, or null if there is no content. \n\n#### public abstract [String](//developer.android.com/reference/java/lang/String.html) **getNamespace** ()\n\nReturn the beacon namespace. \n\n##### Returns\n\n- Namespace of the beacon attachment. \n\n#### public abstract [String](//developer.android.com/reference/java/lang/String.html) **getType** ()\n\nReturn the beacon type. \n\n##### Returns\n\n- Type of the beacon attachment."]]