Added in API level 36

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

Added in API level 36
Builder()

Public methods

build

Added in API level 36
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

Added in API level 36
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.