# CommissioningResult


```
class CommissioningResult : Parcelable
```

<br />

*** ** * ** ***

Response after commissioning a device, indicating the details of the commissioned device.

## Summary

| ### Nested types |
|---|
| `class CommissioningResult.Builder` Builder class to create instances of `CommissioningResult`. |

| ### Public functions |
|---|---|
| `java-static CommissioningResult.Builder!` | `builder()` Returns an empty builder. |
| `Boolean` | `equals(other: Any?)` |
| `java-static CommissioningResult!` | `fromIntentSenderResult(resultCode: Int, data: Intent?)` Parses out the data from the `commissionDevice``android.content.IntentSender` result. |
| `Int` | `hashCode()` |
| `Unit` | `writeToParcel(dest: Parcel!, flags: Int)` |

| ### Public properties |
|---|---|
| `DeviceDescriptor!` | `commissionedDeviceDescriptor` |
| `(Mutable)List<String!>?` | `deviceIds` |
| `String!` | `deviceName` |
| `Room?` | `room` |
| `String?` | `token` |

### Inherited Constants

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `const Int` `CONTENTS_FILE_DESCRIPTOR = 1` `const Int` `PARCELABLE_WRITE_RETURN_VALUE = 1`

### Inherited functions

From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) `abstract Int` `describeContents()`

## Public functions

### builder

```
java-static fun builder(): CommissioningResult.Builder!
```

Returns an empty builder.

### equals

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

### fromIntentSenderResult

```
java-static fun fromIntentSenderResult(resultCode: Int, data: Intent?): CommissioningResult!
```

Parses out the data from the `commissionDevice``android.content.IntentSender` result. This can be called for both success and failure cases to interpret the result data.

In a successful commissioning, a `CommissioningResult` will be returned. For failure cases, a `MatterCommissioningApiException` (or its superclass `ApiException`) will be thrown, containing a `Status` and optional `MatterCommissioningErrorDetails` which indicate the cause of the commissioning failure.

| Parameters |
|---|---|
| `resultCode: Int` | the result code, returned by the `android.content.IntentSender` returned by the `commissionDevice` API |
| `data: Intent?` | the result data, returned by the `android.content.IntentSender` returned by the `commissionDevice` API |

| Throws |
|---|---|
| `com.google.android.gms.home.matter.commissioning.MatterCommissioningApiException` | if the result data indicates a commissioning failure and detailed diagnostic information is available |
| `com.google.android.gms.common.api.ApiException` | if the result data indicates a commissioning failure |

### hashCode

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

### writeToParcel

```
fun writeToParcel(dest: Parcel!, flags: Int): Unit
```

## Public properties

### commissionedDeviceDescriptor

```
val commissionedDeviceDescriptor: DeviceDescriptor!
```

### deviceIds

```
val deviceIds: (Mutable)List<String!>?
```

### deviceName

```
val deviceName: String!
```

### room

```
val room: Room?
```

### token

```
val token: String?
```