Added in API level 36

UwbRangingCapabilities


class UwbRangingCapabilities : Parcelable
kotlin.Any
   ↳ android.ranging.uwb.UwbRangingCapabilities

Represents the capabilities of Ultra-Wideband (UWB) ranging technology.

This class encapsulates various UWB-related features, including support for specific measurement types (e.g., distance, azimuth, elevation), ranging configurations, and operational parameters like update rates and channel availability.

Summary

Inherited constants
Public methods
Int

Duration

Gets the minimum supported ranging interval.

MutableList<Int!>

Gets the list of supported UWB channels.

MutableList<Int!>

Gets the list of supported configuration IDs.

MutableList<Int!>

Gets the list of supported notification configurations.

MutableList<Int!>

Gets the list of supported preamble indexes.

MutableList<Int!>

Gets the list of supported ranging update rates.

MutableList<Int!>

Gets the list of supported slot durations in microseconds.

Boolean

Checks if the device hardware supports azimuthal angle measurement.

Boolean

Checks if background ranging is supported.

Boolean

Checks if the device supports distance measurement.

Boolean

Checks if the device hardware supports elevation angle measurement.

Boolean

Checks if the ranging interval can be reconfigured.

String

Returns a string representation of the object.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<UwbRangingCapabilities!>

Public methods

describeContents

Added in API level 36
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

getMinimumRangingInterval

Added in API level 36
fun getMinimumRangingInterval(): Duration

Gets the minimum supported ranging interval.

Return
Duration the minimum ranging interval.
This value cannot be null.

getSupportedNotificationConfigurations

Added in API level 36
fun getSupportedNotificationConfigurations(): MutableList<Int!>

Gets the list of supported notification configurations.

Return
MutableList<Int!> a list of supported notification configuration type.
This value cannot be null.
Value is one of the following:

getSupportedRangingUpdateRates

Added in API level 36
fun getSupportedRangingUpdateRates(): MutableList<Int!>

Gets the list of supported ranging update rates.

Return
MutableList<Int!> a list of supported update rates.
This value cannot be null.
Value is one of the following:

getSupportedSlotDurations

Added in API level 36
fun getSupportedSlotDurations(): MutableList<Int!>

Gets the list of supported slot durations in microseconds.

Return
MutableList<Int!> a list of supported slot durations.
This value cannot be null.
Value is one of the following:

isAzimuthalAngleSupported

Added in API level 36
fun isAzimuthalAngleSupported(): Boolean

Checks if the device hardware supports azimuthal angle measurement.

Return
Boolean true if azimuthal angle measurement is supported; false otherwise.

isBackgroundRangingSupported

Added in API level 36
fun isBackgroundRangingSupported(): Boolean

Checks if background ranging is supported.

Return
Boolean true if background ranging is supported; false otherwise.

isDistanceMeasurementSupported

Added in API level 36
fun isDistanceMeasurementSupported(): Boolean

Checks if the device supports distance measurement.

Return
Boolean true if distance measurement is supported; false otherwise.

isElevationAngleSupported

Added in API level 36
fun isElevationAngleSupported(): Boolean

Checks if the device hardware supports elevation angle measurement.

Return
Boolean true if elevation angle measurement is supported; false otherwise.

isRangingIntervalReconfigurationSupported

Added in API level 36
fun isRangingIntervalReconfigurationSupported(): Boolean

Checks if the ranging interval can be reconfigured.

Return
Boolean true if the interval is configurable; false otherwise.

toString

Added in API level 36
fun toString(): String

Returns a string representation of the object.

Return
String a string representation of the object.

writeToParcel

Added in API level 36
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 the following:

Properties

CREATOR

Added in API level 36
static val CREATOR: Parcelable.Creator<UwbRangingCapabilities!>