BleCsRangingParams
class BleCsRangingParams : Parcelable
kotlin.Any | |
↳ | android.ranging.ble.cs.BleCsRangingParams |
BleCsRangingParams encapsulates the parameters required for a bluetooth channel sounding ranging session.
Summary
Nested classes | |
---|---|
Builder class to create |
Constants | |
---|---|
static Int |
Location of the device is indoor. |
static Int |
Location of the device is outdoor. |
static Int |
Location of the device is unknown. |
static Int |
Remote device is in line of sight. |
static Int |
Remote device is not in line of sight. |
static Int |
Sight type is unknown. |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
Int |
Returns the location type for the ranging session. |
String |
Returns the Bluetooth address of the peer device. |
Int |
Returns the ranging update rate. |
Int |
Returns the security level for the ranging session. |
Int |
Returns the sight type for this ranging session. |
Unit |
writeToParcel(dest: Parcel, flags: Int) Flatten this object in to a Parcel. |
Properties | |
---|---|
static Parcelable.Creator<BleCsRangingParams!> |
Constants
LOCATION_TYPE_INDOOR
static val LOCATION_TYPE_INDOOR: Int
Location of the device is indoor.
Value: 1
LOCATION_TYPE_OUTDOOR
static val LOCATION_TYPE_OUTDOOR: Int
Location of the device is outdoor.
Value: 2
LOCATION_TYPE_UNKNOWN
static val LOCATION_TYPE_UNKNOWN: Int
Location of the device is unknown.
Value: 0
SIGHT_TYPE_LINE_OF_SIGHT
static val SIGHT_TYPE_LINE_OF_SIGHT: Int
Remote device is in line of sight.
Value: 1
SIGHT_TYPE_NON_LINE_OF_SIGHT
static val SIGHT_TYPE_NON_LINE_OF_SIGHT: Int
Remote device is not in line of sight.
Value: 2
SIGHT_TYPE_UNKNOWN
static val SIGHT_TYPE_UNKNOWN: Int
Sight type is unknown.
Value: 0
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 |
getLocationType
fun getLocationType(): Int
Returns the location type for the ranging session.
getPeerBluetoothAddress
fun getPeerBluetoothAddress(): String
Returns the Bluetooth address of the peer device.
Return | |
---|---|
String |
String representing the Bluetooth address. This value cannot be null . |
getRangingUpdateRate
fun getRangingUpdateRate(): Int
Returns the ranging update rate.
Return | |
---|---|
Int |
ranging update rate. Value is android.ranging.raw.RawRangingDevice#UPDATE_RATE_NORMAL , android.ranging.raw.RawRangingDevice#UPDATE_RATE_INFREQUENT , or android.ranging.raw.RawRangingDevice#UPDATE_RATE_FREQUENT |
getSecurityLevel
fun getSecurityLevel(): Int
Returns the security level for the ranging session.
Return | |
---|---|
Int |
the security level Value is android.ranging.ble.cs.BleCsRangingCapabilities#CS_SECURITY_LEVEL_ONE , or android.ranging.ble.cs.BleCsRangingCapabilities#CS_SECURITY_LEVEL_FOUR |
getSightType
fun getSightType(): Int
Returns the sight type for this ranging session.
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 |