UwbDevice
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class java.lang.Object
Public Methods
public static UwbDevice
createForAddress
(byte[]
address)
Creates a new UwbDevice for a given address.
public static UwbDevice
createForAddress
( String
address)
Creates a new UwbDevice for a given address.
public boolean
equals
( Object
o)
public UwbAddress
getAddress
()
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\u003eUwbDevice\u003c/code\u003e represents an Ultra-wideband (UWB) device and provides access to its address.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a \u003ccode\u003eUwbDevice\u003c/code\u003e instance using either a byte array or a String representation of the device address.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetAddress()\u003c/code\u003e method retrieves the device's address, such as its MAC address, as a \u003ccode\u003eUwbAddress\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides standard methods like \u003ccode\u003eequals()\u003c/code\u003e, \u003ccode\u003ehashCode()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e for object comparison and representation.\u003c/p\u003e\n"]]],["The `UwbDevice` class represents a UWB device. Key actions include creating a new `UwbDevice` using `createForAddress`, which accepts either a byte array or a string. Other methods allow to compare `UwbDevice` using `equals`, retrieve the device address with `getAddress`, generate a hash code using `hashCode` or get a string representation using `toString`. Also the methods inherited from `Object` class are summarized.\n"],null,["# UwbDevice\n\npublic class **UwbDevice** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nRepresents a UWB device. \n\n### Public Method Summary\n\n|------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [UwbDevice](/android/reference/com/google/android/gms/nearby/uwb/UwbDevice) | [createForAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbDevice#createForAddress(byte[]))(byte\\[\\] address) Creates a new UwbDevice for a given address. |\n| static [UwbDevice](/android/reference/com/google/android/gms/nearby/uwb/UwbDevice) | [createForAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbDevice#createForAddress(java.lang.String))([String](//developer.android.com/reference/java/lang/String.html) address) Creates a new UwbDevice for a given address. |\n| boolean | [equals](/android/reference/com/google/android/gms/nearby/uwb/UwbDevice#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) o) |\n| [UwbAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress) | [getAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbDevice#getAddress())() The device address (eg, MAC address). |\n| int | [hashCode](/android/reference/com/google/android/gms/nearby/uwb/UwbDevice#hashCode())() |\n| [String](//developer.android.com/reference/java/lang/String.html) | [toString](/android/reference/com/google/android/gms/nearby/uwb/UwbDevice#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 Methods\n--------------\n\n#### public static [UwbDevice](/android/reference/com/google/android/gms/nearby/uwb/UwbDevice)\n**createForAddress** (byte\\[\\] address)\n\nCreates a new UwbDevice for a given address. \n\n#### public static [UwbDevice](/android/reference/com/google/android/gms/nearby/uwb/UwbDevice)\n**createForAddress** ([String](//developer.android.com/reference/java/lang/String.html) address)\n\nCreates a new UwbDevice for a given address. \n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) o)\n\n#### public [UwbAddress](/android/reference/com/google/android/gms/nearby/uwb/UwbAddress)\n**getAddress** ()\n\nThe device address (eg, MAC address). \n\n#### public int **hashCode** ()\n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **toString** ()"]]