UwbAddress
Stay organized with collections
Save and categorize content based on your preferences.
Represents a UWB address.
Public Constructor Summary
Public Method Summary
boolean |
|
byte[] |
getAddress
() Gets the device address (eg, MAC address).
|
int |
|
String
|
|
Inherited Method Summary
From class java.lang.Object
Public Constructors
public
UwbAddress
( String
address)
public
UwbAddress
(byte[]
address)
Public Methods
public boolean
equals
( Object
o)
public byte[]
getAddress
()
Gets the device address (eg, MAC address).
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\u003eUwbAddress\u003c/code\u003e represents a UWB (Ultra-Wideband) address, similar to a MAC address for UWB devices.\u003c/p\u003e\n"],["\u003cp\u003eIt can be created from either a HEX string or a byte array.\u003c/p\u003e\n"],["\u003cp\u003eProvides methods to get the address as a byte array and for standard object comparisons (equals, hashCode, toString).\u003c/p\u003e\n"],["\u003cp\u003eInherited methods from \u003ccode\u003eObject\u003c/code\u003e are also available for use.\u003c/p\u003e\n"]]],[],null,["# UwbAddress\n\npublic class **UwbAddress** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nRepresents a UWB address. \n\n### Public Constructor Summary\n\n|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [UwbAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress#UwbAddress(java.lang.String))([String](//developer.android.com/reference/java/lang/String.html) address) Creates a [UwbAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress) from a HEX string. |\n| | [UwbAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress#UwbAddress(byte[]))(byte\\[\\] address) Creates a [UwbAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress) from a byte array. |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) o) |\n| byte\\[\\] | [getAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress#getAddress())() Gets the device address (eg, MAC address). |\n| int | [hashCode](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress#hashCode())() |\n| [String](//developer.android.com/reference/java/lang/String.html) | [toString](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress#toString())() |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Constructors\n-------------------\n\n#### public **UwbAddress** ([String](//developer.android.com/reference/java/lang/String.html) address)\n\nCreates a [UwbAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress)\nfrom a HEX string. \n\n#### public **UwbAddress** (byte\\[\\] address)\n\nCreates a [UwbAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress)\nfrom a byte array.\n\nPublic Methods\n--------------\n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) o)\n\n#### public byte\\[\\] **getAddress** ()\n\nGets the device address (eg, MAC address). \n\n#### public int **hashCode** ()\n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **toString** ()"]]