Added in API level 36

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

Added in API level 36
Builder()

Public methods

build

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

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

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

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

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

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