# RangingResult

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Nested Classes](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#nestedclasses)\|[Constants](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#constants)\|[Inherited Constants](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#inhconstants)\|[Fields](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#lfields)\|[Methods](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#inhmethods)  

# RangingResult

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult "View this page in Kotlin")\|Java

`
public

final

class
RangingResult
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[Parcelable](https://developer.android.com/reference/android/os/Parcelable)`


`

|---|------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.net.wifi.rtt.RangingResult |

<br />

*** ** * ** ***

Ranging result for a request started by[WifiRttManager.startRanging(RangingRequest, java.util.concurrent.Executor, RangingResultCallback)](https://developer.android.com/reference/android/net/wifi/rtt/WifiRttManager#startRanging(android.net.wifi.rtt.RangingRequest,%20java.util.concurrent.Executor,%20android.net.wifi.rtt.RangingResultCallback)). Results are returned in[RangingResultCallback.onRangingResults(List)](https://developer.android.com/reference/android/net/wifi/rtt/RangingResultCallback#onRangingResults(java.util.List<android.net.wifi.rtt.RangingResult>)).

A ranging result is the distance measurement result for a single device specified in the[RangingRequest](https://developer.android.com/reference/android/net/wifi/rtt/RangingRequest).

## Summary

|                                                                                                                    ### Nested classes                                                                                                                    ||
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [RangingResult.Builder](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult.Builder) Builder class used to construct[RangingResult](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult)objects. |

|                                                                                                                                                      ### Constants                                                                                                                                                      ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [STATUS_FAIL](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_FAIL) Individual range request status,[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus()).                                                                     |
| `int` | [STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC) Individual range request status,[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus()). |
| `int` | [STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS) Individual range request status,[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus()).                                                               |
| `int` | [UNSPECIFIED](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#UNSPECIFIED) The unspecified value.                                                                                                                                                                                     |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable) |-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `int` | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR) Descriptor bit used with[describeContents()](https://developer.android.com/reference/android/os/Parcelable#describeContents()): indicates that the Parcelable object's flattened representation includes a file descriptor.                                                                                                                                            | | `int` | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE) Flag for use with[writeToParcel(Parcel, int)](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)): the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". | |

|                                                                                                                                                   ### Fields                                                                                                                                                   ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|
| ` public static final `[Creator](https://developer.android.com/reference/android/os/Parcelable.Creator)`<`[RangingResult](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult)`>` | [CREATOR](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#CREATOR) <br /> |

|                                                                                                                                                                                                           ### Public methods                                                                                                                                                                                                            ||
|--------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                                 | ` `[describeContents](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#describeContents())`() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.                                                                                               |
| ` boolean`                                                                                             | ` `[equals](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` o) ` Indicates whether some other object is "equal to" this one.                                                                         |
| ` int`                                                                                                 | ` `[get80211azInitiatorTxLtfRepetitionsCount](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#get80211azInitiatorTxLtfRepetitionsCount())`() ` Gets LTF repetitions that the initiator station (ISTA) used in the preamble of the initiator to responder (I2R) null data PPDU (NDP) for this result. |
| ` int`                                                                                                 | ` `[get80211azNumberOfRxSpatialStreams](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#get80211azNumberOfRxSpatialStreams())`() ` Gets number of receive spatial streams that the initiator station (ISTA) used for the initiator to responder (I2R) null data PPDU (NDP) for this result.          |
| ` int`                                                                                                 | ` `[get80211azNumberOfTxSpatialStreams](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#get80211azNumberOfTxSpatialStreams())`() ` Gets number of transmit spatial streams that the initiator station (ISTA) used for the initiator to responder (I2R) null data PPDU (NDP) for this result.         |
| ` int`                                                                                                 | ` `[get80211azResponderTxLtfRepetitionsCount](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#get80211azResponderTxLtfRepetitionsCount())`() ` Gets LTF repetitions that the responder station (RSTA) used in the preamble of the responder to initiator (I2R) null data PPDU (NDP) for this result. |
| ` int`                                                                                                 | ` `[getDistanceMm](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getDistanceMm())`() `                                                                                                                                                                                                             |
| ` int`                                                                                                 | ` `[getDistanceStdDevMm](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getDistanceStdDevMm())`() `                                                                                                                                                                                                 |
| ` byte[]`                                                                                              | ` `[getLci](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getLci())`() `                                                                                                                                                                                                                           |
| ` byte[]`                                                                                              | ` `[getLcr](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getLcr())`() `                                                                                                                                                                                                                           |
| ` `[MacAddress](https://developer.android.com/reference/android/net/MacAddress)                        | ` `[getMacAddress](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getMacAddress())`() `                                                                                                                                                                                                             |
| ` long`                                                                                                | ` `[getMaxTimeBetweenNtbMeasurementsMicros](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getMaxTimeBetweenNtbMeasurementsMicros())`() ` Gets maximum time between measurements in microseconds for IEEE 802.11az non-trigger based ranging.                                                       |
| ` int`                                                                                                 | ` `[getMeasurementBandwidth](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getMeasurementBandwidth())`() ` The bandwidth used to transmit the RTT measurement frame.                                                                                                                               |
| ` int`                                                                                                 | ` `[getMeasurementChannelFrequencyMHz](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getMeasurementChannelFrequencyMHz())`() ` The center frequency of the primary 20 MHz frequency (in MHz) of the channel over which the measurement frames are sent.                                            |
| ` long`                                                                                                | ` `[getMinTimeBetweenNtbMeasurementsMicros](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getMinTimeBetweenNtbMeasurementsMicros())`() ` Gets minimum time between measurements in microseconds for IEEE 802.11az non-trigger based ranging.                                                       |
| ` int`                                                                                                 | ` `[getNumAttemptedMeasurements](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getNumAttemptedMeasurements())`() `                                                                                                                                                                                 |
| ` int`                                                                                                 | ` `[getNumSuccessfulMeasurements](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getNumSuccessfulMeasurements())`() `                                                                                                                                                                               |
| ` long`                                                                                                | ` `[getPasnComebackAfterMillis](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getPasnComebackAfterMillis())`() ` Get Comeback after time in milliseconds.                                                                                                                                          |
| ` byte[]`                                                                                              | ` `[getPasnComebackCookie](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getPasnComebackCookie())`() ` Get PASN comeback cookie.                                                                                                                                                                   |
| ` `[PeerHandle](https://developer.android.com/reference/android/net/wifi/aware/PeerHandle)             | ` `[getPeerHandle](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getPeerHandle())`() `                                                                                                                                                                                                             |
| ` long`                                                                                                | ` `[getRangingTimestampMillis](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getRangingTimestampMillis())`() `                                                                                                                                                                                     |
| ` int`                                                                                                 | ` `[getRssi](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getRssi())`() `                                                                                                                                                                                                                         |
| ` int`                                                                                                 | ` `[getSecureHeLtfProtocolVersion](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getSecureHeLtfProtocolVersion())`() ` Get Secure HE-LTF protocol version used.                                                                                                                                    |
| ` int`                                                                                                 | ` `[getStatus](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())`() `                                                                                                                                                                                                                     |
| ` `[ResponderLocation](https://developer.android.com/reference/android/net/wifi/rtt/ResponderLocation) | ` `[getUnverifiedResponderLocation](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getUnverifiedResponderLocation())`() `                                                                                                                                                                           |
| ` int`                                                                                                 | ` `[hashCode](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                                             |
| ` boolean`                                                                                             | ` `[is80211azNtbMeasurement](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#is80211azNtbMeasurement())`() `                                                                                                                                                                                         |
| ` boolean`                                                                                             | ` `[is80211mcMeasurement](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#is80211mcMeasurement())`() `                                                                                                                                                                                               |
| ` boolean`                                                                                             | ` `[isRangingAuthenticated](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#isRangingAuthenticated())`() `                                                                                                                                                                                           |
| ` boolean`                                                                                             | ` `[isRangingFrameProtected](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#isRangingFrameProtected())`() `                                                                                                                                                                                         |
| ` boolean`                                                                                             | ` `[isSecureHeLtfEnabled](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#isSecureHeLtfEnabled())`() `                                                                                                                                                                                               |
| ` void`                                                                                                | ` `[writeToParcel](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#writeToParcel(android.os.Parcel,%20int))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel)` dest, int flags) ` Flatten this object in to a Parcel.                                                            |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||
| From interface` `[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable)` ` |------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract int`  | ` `[describeContents](https://developer.android.com/reference/android/os/Parcelable#describeContents())`() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.                                    | | ` abstract void` | ` `[writeToParcel](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel)` dest, int flags) ` Flatten this object in to a Parcel. | ||

## Constants

### STATUS_FAIL

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int STATUS_FAIL
```

Individual range request status,[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus()). Indicates ranging operation failed and the distance value is invalid.

<br />

Constant Value: 1 (0x00000001)  

### STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC
```

Individual range request status,[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus()). Indicates that the ranging operation failed because the specified peer does not support IEEE 802.11mc RTT operations. Support by an Access Point can be confirmed using[ScanResult.is80211mcResponder()](https://developer.android.com/reference/android/net/wifi/ScanResult#is80211mcResponder()).

On such a failure, the individual result fields of[RangingResult](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult)such as[RangingResult.getDistanceMm()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getDistanceMm())are invalid.

<br />

Constant Value: 2 (0x00000002)  

### STATUS_SUCCESS

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int STATUS_SUCCESS
```

Individual range request status,[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus()). Indicates ranging operation was successful and distance value is valid.

<br />

Constant Value: 0 (0x00000000)  

### UNSPECIFIED

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int UNSPECIFIED
```

The unspecified value.

<br />

Constant Value: -1 (0xffffffff)

## Fields

### CREATOR

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final Creator<RangingResult> CREATOR
```

<br />

<br />

## Public methods

### describeContents

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of[writeToParcel(android.os.Parcel, int)](https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)), the return value of this method must include the[CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR)bit.

<br />

|                                                                                                                         Returns                                                                                                                         ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either`0`or[CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR) <br /> |

### equals

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean equals (Object o)
```

Indicates whether some other object is "equal to" this one.

The`equals`method implements an equivalence relation on non-null object references:

- It is*reflexive* : for any non-null reference value`x`,`x.equals(x)`should return`true`.
- It is*symmetric* : for any non-null reference values`x`and`y`,`x.equals(y)`should return`true`if and only if`y.equals(x)`returns`true`.
- It is*transitive* : for any non-null reference values`x`,`y`, and`z`, if`x.equals(y)`returns`true`and`y.equals(z)`returns`true`, then`x.equals(z)`should return`true`.
- It is*consistent* : for any non-null reference values`x`and`y`, multiple invocations of`x.equals(y)`consistently return`true`or consistently return`false`, provided no information used in`equals`comparisons on the objects is modified.
- For any non-null reference value`x`,`x.equals(null)`should return`false`.

An equivalence relation partitions the elements it operates on into*equivalence classes*; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

<br />

|                            Parameters                             ||
|-----|--------------------------------------------------------------|
| `o` | `Object`: the reference object with which to compare. <br /> |

|                                         Returns                                          ||
|-----------|-------------------------------------------------------------------------------|
| `boolean` | `true`if this object is the same as the obj argument;`false`otherwise. <br /> |

### get80211azInitiatorTxLtfRepetitionsCount

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int get80211azInitiatorTxLtfRepetitionsCount ()
```

Gets LTF repetitions that the initiator station (ISTA) used in the preamble of the initiator to responder (I2R) null data PPDU (NDP) for this result. LTF repetitions is the multiple transmissions of HE-LTF symbols in an HE ranging NDP. An HE-LTF repetition value of 1 indicates no repetitions.

<br />

|               Returns               ||
|-------|------------------------------|
| `int` | LTF repetitions count <br /> |

### get80211azNumberOfRxSpatialStreams

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int get80211azNumberOfRxSpatialStreams ()
```

Gets number of receive spatial streams that the initiator station (ISTA) used for the initiator to responder (I2R) null data PPDU (NDP) for this result.

<br />

|                 Returns                 ||
|-------|----------------------------------|
| `int` | Number of spatial streams <br /> |

### get80211azNumberOfTxSpatialStreams

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int get80211azNumberOfTxSpatialStreams ()
```

Gets number of transmit spatial streams that the initiator station (ISTA) used for the initiator to responder (I2R) null data PPDU (NDP) for this result.

<br />

|                 Returns                 ||
|-------|----------------------------------|
| `int` | Number of spatial streams <br /> |

### get80211azResponderTxLtfRepetitionsCount

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int get80211azResponderTxLtfRepetitionsCount ()
```

Gets LTF repetitions that the responder station (RSTA) used in the preamble of the responder to initiator (I2R) null data PPDU (NDP) for this result. LTF repetitions is the multiple transmissions of HE-LTF symbols in an HE ranging NDP. An HE-LTF repetition value of 1 indicates no repetitions.

<br />

|               Returns               ||
|-------|------------------------------|
| `int` | LTF repetitions count <br /> |

### getDistanceMm

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getDistanceMm ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                                             Returns                                                                                                                                                                                                                                                                                                              ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The distance (in mm) to the device specified by[getMacAddress()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getMacAddress())or[getPeerHandle()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getPeerHandle()). Note: the measured distance may be negative for very close devices. Only valid if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())returns[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS), otherwise will throw an exception. |

### getDistanceStdDevMm

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getDistanceStdDevMm ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Returns                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The standard deviation of the measured distance (in mm) to the device specified by[getMacAddress()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getMacAddress())or[getPeerHandle()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getPeerHandle()). The standard deviation is calculated over the measurements executed in a single RTT burst. The number of measurements is returned by[getNumSuccessfulMeasurements()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getNumSuccessfulMeasurements())- 0 successful measurements indicate that the standard deviation is not valid (a valid standard deviation requires at least 2 data points). Only valid if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())returns[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS), otherwise will throw an exception. |

### getLci

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public byte[] getLci ()
```

<br />

<br />

|                                                                                                                                                                  Returns                                                                                                                                                                   ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `byte[]` | The Location Configuration Information (LCI) as self-reported by the peer. The format is specified in the IEEE 802.11-2016 specifications, section 9.4.2.22.10. Note: the information is NOT validated - use with caution. Consider validating it with other sources of information before using it. This value cannot be`null`. |

### getLcr

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public byte[] getLcr ()
```

<br />

<br />

|                                                                                                                                                            Returns                                                                                                                                                            ||
|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `byte[]` | The Location Civic report (LCR) as self-reported by the peer. The format is specified in the IEEE 802.11-2016 specifications, section 9.4.2.22.13. Note: the information is NOT validated - use with caution. Consider validating it with other sources of information before using it. This value cannot be`null`. |

### getMacAddress

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public MacAddress getMacAddress ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                                    Returns                                                                                                                                                                                                                                                                                                     ||
|------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MacAddress](https://developer.android.com/reference/android/net/MacAddress) | The MAC address of the device whose range measurement was requested. Will correspond to the MAC address of the device in the[RangingRequest](https://developer.android.com/reference/android/net/wifi/rtt/RangingRequest). Will return a`null`for results corresponding to requests issued using a`PeerHandle`, i.e. using the[RangingRequest.Builder.addWifiAwarePeer(PeerHandle)](https://developer.android.com/reference/android/net/wifi/rtt/RangingRequest.Builder#addWifiAwarePeer(android.net.wifi.aware.PeerHandle))API. |

### getMaxTimeBetweenNtbMeasurementsMicros

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public long getMaxTimeBetweenNtbMeasurementsMicros ()
```

Gets maximum time between measurements in microseconds for IEEE 802.11az non-trigger based ranging. The next 11az ranging request needs to be invoked before the maximum time from the last measurement time[getRangingTimestampMillis()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getRangingTimestampMillis()). Otherwise, the non-trigger based ranging session will be terminated and a new ranging negotiation will happen with the responding station.

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |

### getMeasurementBandwidth

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getMeasurementBandwidth ()
```

The bandwidth used to transmit the RTT measurement frame.

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Returns                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | one of[ScanResult.CHANNEL_WIDTH_20MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_20MHZ),[ScanResult.CHANNEL_WIDTH_40MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_40MHZ),[ScanResult.CHANNEL_WIDTH_80MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ),[ScanResult.CHANNEL_WIDTH_160MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_160MHZ),[#CHANNEL_WIDTH_80MHZ_PLUS_MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult)or[#CHANNEL_WIDTH_320MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult)if available, otherwise[UNSPECIFIED](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#UNSPECIFIED)is returned. Value is[ScanResult.CHANNEL_WIDTH_20MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_20MHZ),[ScanResult.CHANNEL_WIDTH_40MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_40MHZ),[ScanResult.CHANNEL_WIDTH_80MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ),[ScanResult.CHANNEL_WIDTH_160MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_160MHZ),[ScanResult.CHANNEL_WIDTH_80MHZ_PLUS_MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ_PLUS_MHZ), or[ScanResult.CHANNEL_WIDTH_320MHZ](https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_320MHZ) |

|                                                                                                                                                                Throws                                                                                                                                                                ||
|--------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException) | if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())does not return[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS). |

### getMeasurementChannelFrequencyMHz

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getMeasurementChannelFrequencyMHz ()
```

The center frequency of the primary 20 MHz frequency (in MHz) of the channel over which the measurement frames are sent.

<br />

|                                                                                            Returns                                                                                            ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | center frequency in Mhz of the channel if available, otherwise[UNSPECIFIED](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#UNSPECIFIED)is returned. <br /> |

|                                                                                                                                                                Throws                                                                                                                                                                ||
|--------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [IllegalStateException](https://developer.android.com/reference/java/lang/IllegalStateException) | if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())does not return[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS). |

### getMinTimeBetweenNtbMeasurementsMicros

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public long getMinTimeBetweenNtbMeasurementsMicros ()
```

Gets minimum time between measurements in microseconds for IEEE 802.11az non-trigger based ranging. The next 11az ranging measurement request must be invoked after the minimum time from the last measurement time[getRangingTimestampMillis()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getRangingTimestampMillis())for the peer. Otherwise, cached ranging result will be returned for the peer.

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |

### getNumAttemptedMeasurements

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getNumAttemptedMeasurements ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Returns                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The number of attempted measurements used in the RTT exchange resulting in this set of results. The number of successful measurements is returned by[getNumSuccessfulMeasurements()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getNumSuccessfulMeasurements())which at most, if there are no errors, will be 1 less than the number of attempted measurements. Only valid if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())returns[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS), otherwise will throw an exception. If the value is 0, it should be interpreted as no information available, which may occur for one-sided RTT measurements. Instead[RangingRequest.getRttBurstSize()](https://developer.android.com/reference/android/net/wifi/rtt/RangingRequest#getRttBurstSize())should be used instead. |

### getNumSuccessfulMeasurements

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getNumSuccessfulMeasurements ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Returns                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The number of successful measurements used to calculate the distance and standard deviation. If the number of successful measurements if 1 then then standard deviation, returned by[getDistanceStdDevMm()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getDistanceStdDevMm()), is not valid (a 0 is returned for the standard deviation). The total number of measurement attempts is returned by[getNumAttemptedMeasurements()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getNumAttemptedMeasurements()). The number of successful measurements will be at most 1 less then the number of attempted measurements. Only valid if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())returns[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS), otherwise will throw an exception. |

### getPasnComebackAfterMillis

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public long getPasnComebackAfterMillis ()
```

Get Comeback after time in milliseconds. See[getPasnComebackCookie()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getPasnComebackCookie()). A value 0 indicates the ranging request operation can be tried immediately with the cookie.

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |

### getPasnComebackCookie

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public byte[] getPasnComebackCookie ()
```

Get PASN comeback cookie. PASN authentication allows an AP to indicate the deferral time and optionally a Cookie. See[getPasnComebackAfterMillis()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getPasnComebackAfterMillis())

When an AP receives a large volume of initial PASN Authentication frames, it can use the comeback after field in the PASN Parameters element to indicate a deferral time and optionally provide a comeback cookie which is an opaque sequence of octets. Upon receiving this response, the ranging initiator (STA) must wait for the specified time before retrying secure authentication, presenting the received cookie to the AP.

<br />

|                  Returns                  ||
|----------|---------------------------------|
| `byte[]` | This value may be`null`. <br /> |

### getPeerHandle

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public PeerHandle getPeerHandle ()
```

<br />

<br />

|                                                                                                                                                                                                                                                      Returns                                                                                                                                                                                                                                                       ||
|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PeerHandle](https://developer.android.com/reference/android/net/wifi/aware/PeerHandle) | The PeerHandle of the device whose reange measurement was requested. Will correspond to the PeerHandle of the devices requested using[RangingRequest.Builder.addWifiAwarePeer(PeerHandle)](https://developer.android.com/reference/android/net/wifi/rtt/RangingRequest.Builder#addWifiAwarePeer(android.net.wifi.aware.PeerHandle)). Will return a`null`for results corresponding to requests issued using a MAC address. |

### getRangingTimestampMillis

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public long getRangingTimestampMillis ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                    Returns                                                                                                                                                                                                                                                                                     ||
|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `long` | The timestamp at which the ranging operation was performed. The timestamp is in milliseconds since boot, including time spent in sleep, corresponding to values provided by[SystemClock.elapsedRealtime()](https://developer.android.com/reference/android/os/SystemClock#elapsedRealtime()). Only valid if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())returns[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS), otherwise will throw an exception. |

### getRssi

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getRssi ()
```

<br />

<br />

|                                                                                                                                                                         Returns                                                                                                                                                                         ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The average RSSI, in units of dBm, observed during the RTT measurement. Only valid if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())returns[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS), otherwise will throw an exception. |

### getSecureHeLtfProtocolVersion

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getSecureHeLtfProtocolVersion ()
```

Get Secure HE-LTF protocol version used. The secure HE-LTF negotiation supports negotiation of the secure HE-LTF protocol version which allows a responder and an initiator to negotiate the highest mutually supported secure HE-LTF protocol version. Refer IEEE 802.11az-2022 spec, section 9.4.2.298 Ranging Parameters element.

<br />

|                     Returns                      ||
|-------|-------------------------------------------|
| `int` | Value is between 0 and 7 inclusive <br /> |

### getStatus

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int getStatus ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                                                                                      Returns                                                                                                                                                                                                                                                                                                                                                      ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The status of ranging measurement:[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS)in case of success, and[STATUS_FAIL](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_FAIL)in case of failure. Value is[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS),[STATUS_FAIL](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_FAIL), or[STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC) <br /> |

### getUnverifiedResponderLocation

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public ResponderLocation getUnverifiedResponderLocation ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                                                                                                                                                 Returns                                                                                                                                                                                                                                                                                                                                                                                                                  ||
|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ResponderLocation](https://developer.android.com/reference/android/net/wifi/rtt/ResponderLocation) | The unverified responder location represented as[ResponderLocation](https://developer.android.com/reference/android/net/wifi/rtt/ResponderLocation)which captures location information the responder is programmed to broadcast. The responder location is referred to as unverified, because we are relying on the device/site administrator to correctly configure its location data. Will return a`null`when the location information cannot be parsed. Only valid if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())returns[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS), otherwise will throw an exception. |

### hashCode

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public int hashCode ()
```

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by[HashMap](https://developer.android.com/reference/java/util/HashMap).

The general contract of`hashCode`is:

- Whenever it is invoked on the same object more than once during an execution of a Java application, the`hashCode`method must consistently return the same integer, provided no information used in`equals`comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
- If two objects are equal according to the[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))method, then calling the`hashCode`method on each of the two objects must produce the same integer result.
- It is*not* required that if two objects are unequal according to the[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))method, then calling the`hashCode`method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.

<br />

<br />

|                     Returns                      ||
|-------|-------------------------------------------|
| `int` | a hash code value for this object. <br /> |

### is80211azNtbMeasurement

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean is80211azNtbMeasurement ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                                                Returns                                                                                                                                                                                                                                                                                                                 ||
|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | The result is true if the IEEE 802.11az non-trigger based protocol was used. If the result is false, and[is80211mcMeasurement()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#is80211mcMeasurement())is also false a one-side RTT result is provided which does not subtract the turnaround time at the responder. . Only valid if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())returns[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS), otherwise will throw an exception. |

### is80211mcMeasurement

Added in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean is80211mcMeasurement ()
```

<br />

<br />

|                                                                                                                                                                                                                                                                                                         Returns                                                                                                                                                                                                                                                                                                          ||
|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | The result is true if the IEEE 802.11mc protocol was used. If the result is false, and[is80211azNtbMeasurement()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#is80211azNtbMeasurement())is also false a one-side RTT result is provided which does not subtract the turnaround time at the responder. Only valid if[getStatus()](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#getStatus())returns[STATUS_SUCCESS](https://developer.android.com/reference/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS), otherwise will throw an exception. |

### isRangingAuthenticated

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean isRangingAuthenticated ()
```

<br />

<br />

|                                                      Returns                                                       ||
|-----------|---------------------------------------------------------------------------------------------------------|
| `boolean` | whether the ranging is authenticated or not. Refer IEEE 802.11az-2022 spec, section 12 Security. <br /> |

### isRangingFrameProtected

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean isRangingFrameProtected ()
```

<br />

<br />

|                                                        Returns                                                         ||
|-----------|-------------------------------------------------------------------------------------------------------------|
| `boolean` | whether the ranging frames are protected or not. Refer IEEE 802.11az-2022 spec, section 12 Security. <br /> |

### isSecureHeLtfEnabled

Added in[API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public boolean isSecureHeLtfEnabled ()
```

<br />

<br />

|                                                                   Returns                                                                   ||
|-----------|----------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | whether the secure HE-LTF is enabled or not. Refer IEEE 802.11az-2022 spec, section 9.4.2.298 Ranging Parameters element. <br /> |

### writeToParcel

Added in[API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

|                                                                                                                                                                                                                               Parameters                                                                                                                                                                                                                                ||
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `dest`  | `Parcel`: The Parcel in which the object should be written. This value cannot be`null`. <br />                                                                                                                                                                                                                                                                                                                                                                 |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or[Parcelable.PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE). Value is either`0`or a combination of[Parcelable.PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE), and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES <br /> |