DeviceInfo.Builder

class DeviceInfo.Builder


Builder for constructing DeviceInfo instances.

Summary

Public functions

DeviceInfo!

Constructs a DeviceInfo as configured by this builder.

DeviceInfo.Builder!

Set the 12-bit discriminator for the device to be commissioned.

DeviceInfo.Builder!

Set the 16-bit product identifier of the device to be commissioned.

DeviceInfo.Builder!

Set the 16-bit vendor identifier of the device to be commissioned.

Public functions

build

fun build(): DeviceInfo!

Constructs a DeviceInfo as configured by this builder.

setDiscriminator

@CanIgnoreReturnValue
fun setDiscriminator(discriminator: Discriminator?): DeviceInfo.Builder!

Set the 12-bit discriminator for the device to be commissioned.

setProductId

@CanIgnoreReturnValue
fun setProductId(productId: Int): DeviceInfo.Builder!

Set the 16-bit product identifier of the device to be commissioned.

setVendorId

@CanIgnoreReturnValue
fun setVendorId(vendorId: Int): DeviceInfo.Builder!

Set the 16-bit vendor identifier of the device to be commissioned.