CommissioningResult

class CommissioningResult : Parcelable


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

Summary

Nested types

Builder class to create instances of CommissioningResult.

Public functions

java-static CommissioningResult.Builder!

Returns an empty builder.

Boolean
equals(other: Any?)
java-static CommissioningResult!
fromIntentSenderResult(resultCode: Int, data: Intent?)

Parses out the data from the commissionDeviceandroid.content.IntentSender result.

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

Inherited functions

From android.os.Parcelable

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 commissionDeviceandroid.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, an ApiException will be thrown, containing a Status which indicates 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.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 commissionedDeviceDescriptorDeviceDescriptor!

deviceIds

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

deviceName

val deviceNameString!

room

val roomRoom?

token

val tokenString?