RangingMeasurement
class RangingMeasurement : Parcelable
| kotlin.Any | |
| ↳ | android.ranging.RangingMeasurement | 
Represents a ranging measurement.
This class provides a measurement result, such as a distance or angle.
Summary
| Constants | |
|---|---|
| static Int | Ranging measurement with high confidence. | 
| static Int | Ranging measurement with low confidence. | 
| static Int | Ranging measurement with medium confidence. | 
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Int | Returns the confidence score for this measurement. | 
| Double | Returns the measurement value. | 
| String | toString() | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. | 
| Properties | |
|---|---|
| static Parcelable.Creator<RangingMeasurement!> | |
Constants
CONFIDENCE_HIGH
static val CONFIDENCE_HIGH: Int
Ranging measurement with high confidence.
Value: 2CONFIDENCE_LOW
static val CONFIDENCE_LOW: Int
Ranging measurement with low confidence.
Value: 0CONFIDENCE_MEDIUM
static val CONFIDENCE_MEDIUM: Int
Ranging measurement with medium confidence.
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 | 
getConfidence
fun getConfidence(): Int
Returns the confidence score for this measurement.
| Return | |
|---|---|
| Int | Value is android.ranging.RangingMeasurement#CONFIDENCE_LOW,android.ranging.RangingMeasurement#CONFIDENCE_MEDIUM, orandroid.ranging.RangingMeasurement#CONFIDENCE_HIGH | 
getMeasurement
fun getMeasurement(): Double
Returns the measurement value.
| Return | |
|---|---|
| Double | The measurement, such as a distance in meters or an angle in degrees. | 
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 | 
