RawRangingDevice
class RawRangingDevice : Parcelable
| kotlin.Any | |
| ↳ | android.ranging.raw.RawRangingDevice | 
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  | |
| Constants | |
|---|---|
| static Int | Frequent ranging interval. | 
| static Int | Infrequent ranging interval. | 
| static Int | Normal ranging interval (Default). | 
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| BleRssiRangingParams? | Returns the BLE rssi ranging parameters, if applicable. | 
| BleCsRangingParams? | Returns the CS ranging parameters, if applicable. | 
| RangingDevice | Returns the  | 
| MutableMap<Int!, Duration!> | Returns a map of ranging technologies to their corresponding ranging interval durations for available ranging technologies parameters. | 
| RttRangingParams? | Returns the RTT ranging parameters, if applicable. | 
| RttStationRangingParams? | Returns the Wi-Fi STA-AP ranging parameters, if applicable. | 
| UwbRangingParams? | Returns the UWB ranging parameters, if applicable. | 
| String | toString() | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. | 
| Properties | |
|---|---|
| static Parcelable.Creator<RawRangingDevice!> | |
Constants
UPDATE_RATE_FREQUENT
static val UPDATE_RATE_FREQUENT: Int
Frequent ranging interval.
-  UWB - 96 milliseconds for config id UwbRangingParams.CONFIG_PROVISIONED_UNICAST_DS_TWR_VERY_FAST, 120 milliseconds otherwise. SeeUwbRangingCapabilities.getSupportedRangingUpdateRates()to verify Frequent update rate is supported.
- BLE RSSI - 500 milliseconds.
- BLE CS - 100 milliseconds.
-  WiFi Rtt - 128 milliseconds if RttRangingCapabilities.hasPeriodicRangingHardwareFeature()is true, 256 milliseconds otherwise.
Value: 3UPDATE_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: 2UPDATE_RATE_NORMAL
static val UPDATE_RATE_NORMAL: Int
Normal ranging interval (Default).
-  UWB - 200 milliseconds for config ids UwbRangingParams.getConfigId()with multicast ranging, 240 milliseconds for unicast.
- BLE RSSI - 1 second.
- BLE CS - 200 ms.
-  WiFi Rtt - 256 milliseconds if RttRangingCapabilities.hasPeriodicRangingHardwareFeature()is true, 512 milliseconds otherwise.
Value: 1Public 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 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
getBleRssiRangingParams
fun getBleRssiRangingParams(): BleRssiRangingParams?
Returns the BLE rssi ranging parameters, if applicable.
| Return | |
|---|---|
| BleRssiRangingParams? | the BleRssiRangingParams, ornullif not set. | 
getCsRangingParams
fun getCsRangingParams(): BleCsRangingParams?
Returns the CS ranging parameters, if applicable.
| Return | |
|---|---|
| BleCsRangingParams? | the BleCsRangingParams, ornullif not set. | 
getRangingDevice
fun getRangingDevice(): RangingDevice
Returns the RangingDevice associated with this instance.
| Return | |
|---|---|
| RangingDevice | the ranging device. This value cannot be null. | 
getRangingIntervalValues
fun getRangingIntervalValues(): MutableMap<Int!, Duration!>
Returns a map of ranging technologies to their corresponding ranging interval durations for available ranging technologies parameters.
The duration for each technology is determined by its configured android.ranging.raw.RawRangingDevice.RangingUpdateRate and, in some cases, technology-specific parameters like UwbRangingParams.getConfigId() for UWB.
| Return | |
|---|---|
| MutableMap<Int!, Duration!> | A non-null, possibly empty, map where keys are RangingTechnology integers and values are the calculated Durationfor that technology's ranging interval. | 
getRttRangingParams
fun getRttRangingParams(): RttRangingParams?
Returns the RTT ranging parameters, if applicable.
| Return | |
|---|---|
| RttRangingParams? | the RttRangingParams, ornullif not set. | 
getRttStationRangingParams
fun getRttStationRangingParams(): RttStationRangingParams?
Returns the Wi-Fi STA-AP ranging parameters, if applicable.
| Return | |
|---|---|
| RttStationRangingParams? | the RttStationRangingParams, ornullif not set. | 
getUwbRangingParams
fun getUwbRangingParams(): UwbRangingParams?
Returns the UWB ranging parameters, if applicable.
| Return | |
|---|---|
| UwbRangingParams? | the UwbRangingParams, ornullif 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 either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
