BleRssiRangingParams.Builder


public static final class BleRssiRangingParams.Builder
extends Object

java.lang.Object
   ↳ android.ranging.ble.rssi.BleRssiRangingParams.Builder


Builder class to create BleRssiRangingParams instances.

Summary

Public constructors

Builder(String peerBluetoothAddress)

Constructs a new Builder for creating a bluetooth rssi ranging session.

Public methods

BleRssiRangingParams build()

Builds and returns a BleRssiRangingParams instance.

BleRssiRangingParams.Builder setRangingUpdateRate(int updateRate)

Sets the update rate for the BLE rssi ranging session.

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 (String peerBluetoothAddress)

Constructs a new Builder for creating a bluetooth rssi ranging session.

Valid Bluetooth hardware addresses must be upper case, in big endian byte order, and in a format such as "00:11:22:33:AA:BB". The helper is available to validate a Bluetooth address.

Parameters
peerBluetoothAddress String: The address of the peer device must be non-null Bluetooth address.

Throws
IllegalArgumentException if peerBluetoothAddress is null or does not conform to "00:11:22:33:AA:BB" format.

Public methods

build

public BleRssiRangingParams build ()

Builds and returns a BleRssiRangingParams instance.

Returns
BleRssiRangingParams a new BleRssiRangingParams. This value cannot be null.

setRangingUpdateRate

public BleRssiRangingParams.Builder setRangingUpdateRate (int updateRate)

Sets the update rate for the BLE rssi ranging session.

Defaults to ERROR(RangingUpdateRate.UPDATE_RATE_NORMAL/android.ranging.raw.RawRangingDevice.RangingUpdateRate#UPDATE_RATE_NORMAL RangingUpdateRate.UPDATE_RATE_NORMAL)

Returns
BleRssiRangingParams.Builder this Builder instance. This value cannot be null.