Builder


class Builder
kotlin.Any
   ↳ android.ranging.RangingDevice.Builder

A builder class for creating instances of RangingDevice.

Summary

Public constructors

Public methods
RangingDevice

Builds a new instance of RangingDevice with the provided configuration.

RangingDevice.Builder

Sets the UUID for the device.

Public constructors

Builder

Builder()

Public methods

build

fun build(): RangingDevice

Builds a new instance of RangingDevice with the provided configuration.

Return
RangingDevice A new RangingDevice instance. This value cannot be null.

setUuid

fun setUuid(id: UUID): RangingDevice.Builder

Sets the UUID for the device.

Parameters
id UUID: The UUID to assign to the device. This value cannot be null.
Return
RangingDevice.Builder This Builder instance. This value cannot be null.
Exceptions
java.lang.IllegalArgumentException if the provided UUID is null.