RangingCapabilities
class RangingCapabilities : Parcelable
| kotlin.Any | |
| ↳ | android.ranging.RangingCapabilities | 
Represents the capabilities and availability of various ranging technologies.
The RangingCapabilities class encapsulates the status of different ranging technologies. It also allows querying the availability of other ranging technologies through a mapping of technology identifiers to availability statuses.
Summary
| Constants | |
|---|---|
| static Int | Indicates that the ranging technology is disabled due to regulatory restrictions. | 
| static Int | Indicates that the ranging technology is disabled by the user. | 
| static Int | Indicates that the ranging technology is disabled due to device usage restrictions. | 
| static Int | Indicates that the ranging technology is enabled and available for use. | 
| static Int | Indicates that the ranging technology is not supported on the current device. | 
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| BleCsRangingCapabilities? | Gets the BLE channel sounding ranging capabilities. | 
| RttRangingCapabilities? | Gets the WiFi NAN-RTT ranging capabilities. | 
| MutableMap<Int!, Int!> | Gets a map containing the availability of various ranging technologies. | 
| UwbRangingCapabilities? | Gets the UWB ranging capabilities. | 
| String | toString() | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. | 
| Properties | |
|---|---|
| static Parcelable.Creator<RangingCapabilities!> | |
Constants
DISABLED_REGULATORY
static val DISABLED_REGULATORY: Int
Indicates that the ranging technology is disabled due to regulatory restrictions.
Value: 2DISABLED_USER
static val DISABLED_USER: Int
Indicates that the ranging technology is disabled by the user.
Value: 1DISABLED_USER_RESTRICTIONS
static val DISABLED_USER_RESTRICTIONS: Int
Indicates that the ranging technology is disabled due to device usage restrictions.
Value: 4ENABLED
static val ENABLED: Int
Indicates that the ranging technology is enabled and available for use.
Value: 3NOT_SUPPORTED
static val NOT_SUPPORTED: Int
Indicates that the ranging technology is not supported on the current device.
Value: 0Public 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 | 
getCsCapabilities
fun getCsCapabilities(): BleCsRangingCapabilities?
Gets the BLE channel sounding ranging capabilities.
| Return | |
|---|---|
| BleCsRangingCapabilities? | a BleCsRangingCapabilitiesobject ornullif not available. | 
getRttRangingCapabilities
fun getRttRangingCapabilities(): RttRangingCapabilities?
Gets the WiFi NAN-RTT ranging capabilities.
| Return | |
|---|---|
| RttRangingCapabilities? | a RttRangingCapabilitiesobject ornullif not available. | 
getTechnologyAvailability
fun getTechnologyAvailability(): MutableMap<Int!, Int!>
Gets a map containing the availability of various ranging technologies.
The map uses technology identifiers as keys and their respective availability statuses as values.
| Return | |
|---|---|
| MutableMap<Int!, Int!> | a Mapwith key android.ranging.RangingManager.RangingTechnology and value android.ranging.RangingCapabilities.RangingTechnologyAvailability. This value cannot benull. | 
getUwbCapabilities
fun getUwbCapabilities(): UwbRangingCapabilities?
Gets the UWB ranging capabilities.
| Return | |
|---|---|
| UwbRangingCapabilities? | a UwbRangingCapabilitiesobject ornullif not available. | 
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 | 
