# UwbDevice

Artifact: [androidx.core.uwb:uwb](https://developer.android.com/jetpack/androidx/releases/core-uwb) [View Source](https://cs.android.com/search?q=file:androidx/core/uwb/UwbDevice.kt+class:androidx.core.uwb.UwbDevice) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core-uwb#1.0.0)

*** ** * ** ***


```
class UwbDevice
```

<br />

*** ** * ** ***

Represents a UWB device.

## Summary

| ### Public companion functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbDevice` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbDevice#createForAddress(kotlin.ByteArray)(address: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html)` Creates a new UwbDevice for a given address. |
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbDevice` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbDevice#createForAddress(kotlin.String)(address: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Creates a new UwbDevice for a given address. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbDevice#UwbDevice(androidx.core.uwb.UwbAddress)(address: https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbAddress)` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbAddress` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbDevice#address()` the device address (e.g., MAC address). |

## Public companion functions

### createForAddress

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core-uwb#1.0.0)

```
fun createForAddress(address: ByteArray): UwbDevice
```

Creates a new UwbDevice for a given address.

### createForAddress

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core-uwb#1.0.0)

```
fun createForAddress(address: String): UwbDevice
```

Creates a new UwbDevice for a given address.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if address is invalid. |

## Public constructors

### UwbDevice

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core-uwb#1.0.0)

```
UwbDevice(address: UwbAddress)
```

## Public properties

### address

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core-uwb#1.0.0)

```
val address: UwbAddress
```

the device address (e.g., MAC address).