# UwbAddress

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/UwbAddress.kt+class:androidx.core.uwb.UwbAddress) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core-uwb#1.0.0)

*** ** * ** ***


```
class UwbAddress
```

<br />

*** ** * ** ***

Represents a UWB address.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbAddress#UwbAddress(kotlin.ByteArray)(address: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbAddress#UwbAddress(kotlin.String)(address: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbAddress#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` Checks that two UwbAddresses are equal. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbAddress#hashCode()()` Returns the hashcode. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbAddress#toString()()` Returns the string format of `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbAddress`. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbAddress#address()` the device address (eg, MAC address). |

## Public constructors

### UwbAddress

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

```
UwbAddress(address: ByteArray)
```

### UwbAddress

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

```
UwbAddress(address: String)
```

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

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

Checks that two UwbAddresses are equal.

### hashCode

```
open fun hashCode(): Int
```

Returns the hashcode.

### toString

```
open fun toString(): String
```

Returns the string format of `https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbAddress`.

## Public properties

### address

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

```
val address: ByteArray
```

the device address (eg, MAC address).