RawRangingDevice


class RawRangingDevice : Parcelable

Represents a device participating in ranging operations. This class supports multiple ranging technologies, including UWB, BLE CS, BLE RSSI and Wi-Fi NAN-RTT. The configuration for each technology is provided through corresponding parameter objects.

Summary

Nested classes

Builder class for creating instances of RawRangingDevice.

Constants
static Int

Frequent ranging interval.

static Int

Infrequent ranging interval.

static Int

Normal ranging interval (Default).

Inherited constants
Int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

Int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.

Public methods
Int

BleRssiRangingParams?

Returns the BLE rssi ranging parameters, if applicable.

BleCsRangingParams?

Returns the CS ranging parameters, if applicable.

RangingDevice

Returns the RangingDevice associated with this instance.

RttRangingParams?

Returns the RTT ranging parameters, if applicable.

UwbRangingParams?

Returns the UWB ranging parameters, if applicable.

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Constants

UPDATE_RATE_FREQUENT

static val UPDATE_RATE_FREQUENT: Int

Frequent ranging interval.

Value: 3

UPDATE_RATE_INFREQUENT

static val UPDATE_RATE_INFREQUENT: Int

Infrequent ranging interval.

  • UWB - 600 milliseconds.
  • BLE RSSI - 3 seconds.
  • BLE CS - 5 seconds.
  • WiFi Rtt - 8192 milliseconds otherwise.

Value: 2

UPDATE_RATE_NORMAL

static val UPDATE_RATE_NORMAL: Int

Normal ranging interval (Default).

Value: 1

Public methods

describeContents

fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getBleRssiRangingParams

fun getBleRssiRangingParams(): BleRssiRangingParams?

Returns the BLE rssi ranging parameters, if applicable.

Return
BleRssiRangingParams? the BleRssiRangingParams, or null if not set.

getCsRangingParams

fun getCsRangingParams(): BleCsRangingParams?

Returns the CS ranging parameters, if applicable.

Return
BleCsRangingParams? the BleCsRangingParams, or null if not set.

getRangingDevice

fun getRangingDevice(): RangingDevice

Returns the RangingDevice associated with this instance.

Return
RangingDevice the ranging device. This value cannot be null.

getRttRangingParams

fun getRttRangingParams(): RttRangingParams?

Returns the RTT ranging parameters, if applicable.

Return
RttRangingParams? the RttRangingParams, or null if not set.

getUwbRangingParams

fun getUwbRangingParams(): UwbRangingParams?

Returns the UWB ranging parameters, if applicable.

Return
UwbRangingParams? the UwbRangingParams, or null if not set.

toString

fun toString(): String
Return
String a string representation of the object.

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

static val CREATOR: Parcelable.Creator<RawRangingDevice!>