Builder


class Builder
kotlin.Any
   ↳ android.ranging.raw.RawRangingDevice.Builder

Builder class for creating instances of RawRangingDevice.

Summary

Public constructors

Public methods
RawRangingDevice

Builds and returns a new RawRangingDevice instance.

RawRangingDevice.Builder

Sets the BLE rssi ranging parameters.

RawRangingDevice.Builder

Sets the BLE channel sounding ranging parameters.

RawRangingDevice.Builder

Sets the ranging device.

RawRangingDevice.Builder

Sets the WiFi NAN-RTT ranging parameters.

RawRangingDevice.Builder

Sets the UWB ranging parameters.

Public constructors

Builder

Builder()

Public methods

build

fun build(): RawRangingDevice

Builds and returns a new RawRangingDevice instance.

Return
RawRangingDevice a new RawRangingDevice configured with the specified parameters. This value cannot be null.

setBleRssiRangingParams

fun setBleRssiRangingParams(params: BleRssiRangingParams): RawRangingDevice.Builder

Sets the BLE rssi ranging parameters.

Parameters
params BleRssiRangingParams: the BleCsRangingParams to be set. This value cannot be null.
Return
RawRangingDevice.Builder this Builder instance for chaining calls. This value cannot be null.

setCsRangingParams

fun setCsRangingParams(params: BleCsRangingParams): RawRangingDevice.Builder

Sets the BLE channel sounding ranging parameters.

Parameters
params BleCsRangingParams: the BleCsRangingParams to be set. This value cannot be null.
Return
RawRangingDevice.Builder this Builder instance for chaining calls. This value cannot be null.

setRangingDevice

fun setRangingDevice(rangingDevice: RangingDevice): RawRangingDevice.Builder

Sets the ranging device.

Parameters
rangingDevice RangingDevice: the RangingDevice to be set. This value cannot be null.
Return
RawRangingDevice.Builder this Builder instance for chaining calls. This value cannot be null.

setRttRangingParams

fun setRttRangingParams(params: RttRangingParams): RawRangingDevice.Builder

Sets the WiFi NAN-RTT ranging parameters.

Parameters
params RttRangingParams: the RttRangingParams to be set. This value cannot be null.
Return
RawRangingDevice.Builder this Builder instance for chaining calls. This value cannot be null.

setUwbRangingParams

fun setUwbRangingParams(params: UwbRangingParams): RawRangingDevice.Builder

Sets the UWB ranging parameters.

Parameters
params UwbRangingParams: the UwbRangingParams to be set. This value cannot be null.
Return
RawRangingDevice.Builder this Builder instance for chaining calls. This value cannot be null.