RawRangingDevice.Builder


public static final class RawRangingDevice.Builder
extends Object

java.lang.Object
   ↳ android.ranging.raw.RawRangingDevice.Builder


Builder class for creating instances of RawRangingDevice.

Summary

Public constructors

Builder()

Public methods

RawRangingDevice build()

Builds and returns a new RawRangingDevice instance.

RawRangingDevice.Builder setBleRssiRangingParams(BleRssiRangingParams params)

Sets the BLE rssi ranging parameters.

RawRangingDevice.Builder setCsRangingParams(BleCsRangingParams params)

Sets the BLE channel sounding ranging parameters.

RawRangingDevice.Builder setRangingDevice(RangingDevice rangingDevice)

Sets the ranging device.

RawRangingDevice.Builder setRttRangingParams(RttRangingParams params)

Sets the WiFi NAN-RTT ranging parameters.

RawRangingDevice.Builder setUwbRangingParams(UwbRangingParams params)

Sets the UWB ranging parameters.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public RawRangingDevice build ()

Builds and returns a new RawRangingDevice instance.

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

setBleRssiRangingParams

public RawRangingDevice.Builder setBleRssiRangingParams (BleRssiRangingParams params)

Sets the BLE rssi ranging parameters.

Parameters
params BleRssiRangingParams: the BleCsRangingParams to be set. This value cannot be null.

Returns
RawRangingDevice.Builder this Builder instance for chaining calls. This value cannot be null.

setCsRangingParams

public RawRangingDevice.Builder setCsRangingParams (BleCsRangingParams params)

Sets the BLE channel sounding ranging parameters.

Parameters
params BleCsRangingParams: the BleCsRangingParams to be set. This value cannot be null.

Returns
RawRangingDevice.Builder this Builder instance for chaining calls. This value cannot be null.

setRangingDevice

public RawRangingDevice.Builder setRangingDevice (RangingDevice rangingDevice)

Sets the ranging device.

Parameters
rangingDevice RangingDevice: the RangingDevice to be set. This value cannot be null.

Returns
RawRangingDevice.Builder this Builder instance for chaining calls. This value cannot be null.

setRttRangingParams

public RawRangingDevice.Builder setRttRangingParams (RttRangingParams params)

Sets the WiFi NAN-RTT ranging parameters.

Parameters
params RttRangingParams: the RttRangingParams to be set. This value cannot be null.

Returns
RawRangingDevice.Builder this Builder instance for chaining calls. This value cannot be null.

setUwbRangingParams

public RawRangingDevice.Builder setUwbRangingParams (UwbRangingParams params)

Sets the UWB ranging parameters.

Parameters
params UwbRangingParams: the UwbRangingParams to be set. This value cannot be null.

Returns
RawRangingDevice.Builder this Builder instance for chaining calls. This value cannot be null.