# RangingResult.RangingResultPeerDisconnected

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

*** ** * ** ***


```
class RangingResult.RangingResultPeerDisconnected : RangingResult
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.core.uwb.RangingResult](https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingResult) ||
|   | ↳ | [androidx.core.uwb.RangingResult.RangingResultPeerDisconnected](https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingResult.RangingResultPeerDisconnected) |

*** ** * ** ***

A ranging result with peer disconnected status update.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingResult.RangingResultPeerDisconnected#RangingResultPeerDisconnected(androidx.core.uwb.UwbDevice,kotlin.Int)(device: https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbDevice, reason: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

| ### Public properties |
|---|---|
| `open https://developer.android.com/reference/kotlin/androidx/core/uwb/UwbDevice` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingResult.RangingResultPeerDisconnected#device()` The peer UWB device that disconnected. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/uwb/RangingResult.RangingResultPeerDisconnected#reason()` The reason code indicating why the failure occurred. |

## Public constructors

### RangingResultPeerDisconnected

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

```
RangingResultPeerDisconnected(device: UwbDevice, reason: Int)
```

## Public properties

### device

```
open val device: UwbDevice
```

The peer UWB device that disconnected.

### reason

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

```
val reason: Int
```

The reason code indicating why the failure occurred.

Value is one of the following:

- `0`
- `1`
- `2`
- `3`
- `4`
- `5`
- `6`
- `7`

<br />