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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

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.