# RangingResult.Builder

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

# Builder

*** ** * ** ***

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

```
class Builder
```

|---|------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                           ||
| ↳ | [android.net.wifi.rtt.RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) |

Builder class used to construct[RangingResult](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult)objects.

## Summary

|                                                                                                                            Public constructors                                                                                                                             ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#Builder())`()` Constructs a Builder with default values (see[Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#)). |

|                                                                                                                                                                                                                                                         Public methods                                                                                                                                                                                                                                                          ||
|---------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [RangingResult](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult)                  | [build](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#build())`()` Build[RangingResult](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult)                                                                                                                                                                                     |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [set80211azInitiatorTxLtfRepetitionsCount](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#set80211azInitiatorTxLtfRepetitionsCount(kotlin.Int))`(`i2rTxLtfRepetitions:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets LTF repetitions that the initiator station used in the preamble.                                    |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [set80211azNtbMeasurement](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#set80211azNtbMeasurement(kotlin.Boolean))`(`is80211azNtbMeasurement:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets whether the ranging measurement was performed using IEEE 802.                                                       |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [set80211azNumberOfRxSpatialStreams](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#set80211azNumberOfRxSpatialStreams(kotlin.Int))`(`numRxSpatialStreams:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets number of receive spatial streams that the initiator station used for the ranging result.                       |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [set80211azNumberOfTxSpatialStreams](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#set80211azNumberOfTxSpatialStreams(kotlin.Int))`(`numTxSpatialStreams:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets number of transmit spatial streams that the initiator station used for the ranging result.                      |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [set80211azResponderTxLtfRepetitionsCount](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#set80211azResponderTxLtfRepetitionsCount(kotlin.Int))`(`r2iTxLtfRepetitions:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets LTF repetitions that the responder station used in the preamble.                                    |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [set80211mcMeasurement](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#set80211mcMeasurement(kotlin.Boolean))`(`is80211mcMeasurement:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets whether the ranging measurement was performed using IEEE 802.                                                                |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setDistanceMm](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setDistanceMm(kotlin.Int))`(`distanceMm:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the distance in millimeter.                                                                                                                                        |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setDistanceStdDevMm](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setDistanceStdDevMm(kotlin.Int))`(`distanceStdDevMm:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the standard deviation of the distance in millimeter.                                                                                            |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setLci](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setLci(kotlin.ByteArray))`(`lci:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)?`)` Sets the Location Configuration Information (LCI).                                                                                                                       |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setLcr](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setLcr(kotlin.ByteArray))`(`lcr:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)?`)` Sets the Location Civic Report (LCR).                                                                                                                                    |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setMacAddress](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setMacAddress(android.net.MacAddress))`(`macAddress:` `[MacAddress](https://developer.android.com/reference/kotlin/android/net/MacAddress.html#)?`)` Sets the MAC address of the ranging result.                                                                                                 |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setMaxTimeBetweenNtbMeasurementsMicros](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setMaxTimeBetweenNtbMeasurementsMicros(kotlin.Long))`(`ntbMaxMeasurementTime:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets maximum time between measurements in microseconds for IEEE 802.                                    |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setMeasurementBandwidth](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setMeasurementBandwidth(kotlin.Int))`(`measurementBandwidth:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the bandwidth used to transmit the RTT measurement frame.                                                                            |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setMeasurementChannelFrequencyMHz](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setMeasurementChannelFrequencyMHz(kotlin.Int))`(`frequencyMHz:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the center frequency of the primary 20 MHz frequency (in MHz) of the channel over which the measurement frames are sent. |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setMinTimeBetweenNtbMeasurementsMicros](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setMinTimeBetweenNtbMeasurementsMicros(kotlin.Long))`(`ntbMinMeasurementTime:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets minimum time between measurements in microseconds for IEEE 802.                                    |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setNumAttemptedMeasurements](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setNumAttemptedMeasurements(kotlin.Int))`(`numAttemptedMeasurements:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the total number of RTT measurements attempted.                                                                          |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setNumSuccessfulMeasurements](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setNumSuccessfulMeasurements(kotlin.Int))`(`numSuccessfulMeasurements:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the total number of successful RTT measurements.                                                                      |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setPasnComebackAfterMillis](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setPasnComebackAfterMillis(kotlin.Long))`(`comebackAfterMillis:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Set comeback after time.                                                                                                          |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setPasnComebackCookie](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setPasnComebackCookie(kotlin.ByteArray))`(`pasnComebackCookie:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`)` Set comeback cookie.                                                                                                         |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setPeerHandle](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setPeerHandle(android.net.wifi.aware.PeerHandle))`(`peerHandle:` `[PeerHandle](https://developer.android.com/reference/kotlin/android/net/wifi/aware/PeerHandle.html#)?`)` Sets the peer handle.                                                                                                 |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setRangingAuthenticated](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setRangingAuthenticated(kotlin.Boolean))`(`isRangingAuthenticated:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Set whether mutual authentication is done for the ranging.                                                                  |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setRangingFrameProtected](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setRangingFrameProtected(kotlin.Boolean))`(`isRangingFrameProtected:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Set whether ranging frames are protected.                                                                                |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setRangingTimestampMillis](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setRangingTimestampMillis(kotlin.Long))`(`timestamp:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets the time stamp at which the ranging operation was performed.                                                                             |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setRssi](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setRssi(kotlin.Int))`(`rssi:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the average RSSI.                                                                                                                                                                    |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setSecureHeLtfEnabled](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setSecureHeLtfEnabled(kotlin.Boolean))`(`isSecureHeLtfEnabled:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Set whether secure HE-LTF is used for this ranging.                                                                               |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setSecureHeLtfProtocolVersion](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setSecureHeLtfProtocolVersion(kotlin.Int))`(`secureHeLtfProtocolVersion:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Set secure HE-LTF protocol version used for this ranging.                                                               |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setStatus](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setStatus(kotlin.Int))`(`status:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the Range result status.                                                                                                                                                       |
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | [setUnverifiedResponderLocation](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setUnverifiedResponderLocation(android.net.wifi.rtt.ResponderLocation))`(`responderLocation:` `[ResponderLocation](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/ResponderLocation)?`)` Sets Responder Location.                                          |

## Public constructors

### Builder

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

```
Builder()
```

Constructs a Builder with default values (see[Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#)).

## Public methods

### build

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

```
fun build(): RangingResult
```

Build[RangingResult](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult)

|                                                                                                                     Return                                                                                                                      ||
|----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
| [RangingResult](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult) | an instance of[RangingResult](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult)This value cannot be`null`. |

### set80211azInitiatorTxLtfRepetitionsCount

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

```
fun set80211azInitiatorTxLtfRepetitionsCount(i2rTxLtfRepetitions: Int): RangingResult.Builder
```

Sets LTF repetitions that the initiator station used in the preamble. If not set, defaults to[RangingResult.UNSPECIFIED](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#UNSPECIFIED:kotlin.Int).

|                                                       Parameters                                                        ||
|-----------------------|--------------------------------------------------------------------------------------------------|
| `i2rTxLtfRepetitions` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):LFT repetition count. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### set80211azNtbMeasurement

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

```
fun set80211azNtbMeasurement(is80211azNtbMeasurement: Boolean): RangingResult.Builder
```

Sets whether the ranging measurement was performed using IEEE 802.11az non-trigger ranging method. If[set80211azNtbMeasurement(boolean)](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#set80211azNtbMeasurement(kotlin.Boolean))is set as false and[set80211mcMeasurement(boolean)](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#set80211mcMeasurement(kotlin.Boolean))is also set as false, ranging measurement was performed using one-side RTT. If not set defaults to false.

|                                                                                      Parameters                                                                                      ||
|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `is80211azNtbMeasurement` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true for IEEE 802.11az non-trigger based measurement, otherwise false. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### set80211azNumberOfRxSpatialStreams

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

```
fun set80211azNumberOfRxSpatialStreams(numRxSpatialStreams: Int): RangingResult.Builder
```

Sets number of receive spatial streams that the initiator station used for the ranging result. If not set, defaults to[RangingResult.UNSPECIFIED](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#UNSPECIFIED:kotlin.Int).

|                                                              Parameters                                                              ||
|-----------------------|---------------------------------------------------------------------------------------------------------------|
| `numRxSpatialStreams` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Number of receive spatial streams. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### set80211azNumberOfTxSpatialStreams

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

```
fun set80211azNumberOfTxSpatialStreams(numTxSpatialStreams: Int): RangingResult.Builder
```

Sets number of transmit spatial streams that the initiator station used for the ranging result. If not set, defaults to[RangingResult.UNSPECIFIED](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#UNSPECIFIED:kotlin.Int).

|                                                              Parameters                                                               ||
|-----------------------|----------------------------------------------------------------------------------------------------------------|
| `numTxSpatialStreams` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Number of transmit spatial streams. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### set80211azResponderTxLtfRepetitionsCount

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

```
fun set80211azResponderTxLtfRepetitionsCount(r2iTxLtfRepetitions: Int): RangingResult.Builder
```

Sets LTF repetitions that the responder station used in the preamble. If not set, defaults to[RangingResult.UNSPECIFIED](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#UNSPECIFIED:kotlin.Int).

|                                                       Parameters                                                        ||
|-----------------------|--------------------------------------------------------------------------------------------------|
| `r2iTxLtfRepetitions` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):LFT repetition count. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### set80211mcMeasurement

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

```
fun set80211mcMeasurement(is80211mcMeasurement: Boolean): RangingResult.Builder
```

Sets whether the ranging measurement was performed using IEEE 802.11mc ranging method. If[set80211mcMeasurement(boolean)](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#set80211mcMeasurement(kotlin.Boolean))is set as false and[set80211azNtbMeasurement(boolean)](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#set80211azNtbMeasurement(kotlin.Boolean))is also set as false, ranging measurement was performed using one-side RTT. If not set, default to false.

|                                                                         Parameters                                                                          ||
|------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
| `is80211mcMeasurement` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true for IEEE 802.11mc measure, otherwise false. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setDistanceMm

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

```
fun setDistanceMm(distanceMm: Int): RangingResult.Builder
```

Sets the distance in millimeter.

|                                                          Parameters                                                           ||
|--------------|-----------------------------------------------------------------------------------------------------------------|
| `distanceMm` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):distance. If not set, defaults to 0. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setDistanceStdDevMm

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

```
fun setDistanceStdDevMm(distanceStdDevMm: Int): RangingResult.Builder
```

Sets the standard deviation of the distance in millimeter.

|                                                                                Parameters                                                                                ||
|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| `distanceStdDevMm` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Standard deviation of the distance measurement. If not set defaults to 0. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setLci

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

```
fun setLci(lci: ByteArray?): RangingResult.Builder
```

Sets the Location Configuration Information (LCI). LCI provides data about the access point's (AP) physical location, such as its latitude, longitude, and altitude. The format is specified in the IEEE 802.11-2016 specifications, section 9.4.2.22.10.

|                                                                            Parameters                                                                             ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `lci` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)?:Location configuration information. If not set, defaults to null. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setLcr

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

```
fun setLcr(lcr: ByteArray?): RangingResult.Builder
```

Sets the Location Civic Report (LCR). LCR provides additional details about the AP's location in a human-readable format, such as the street address, building name, or floor number. This can be helpful for users to understand the context of their location within a building or complex. The format is specified in the IEEE 802.11-2016 specifications, section 9.4.2.22.13.

|                                                                      Parameters                                                                      ||
|-------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| `lcr` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)?:Location civic report. If not set, defaults to null. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setMacAddress

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

```
fun setMacAddress(macAddress: MacAddress?): RangingResult.Builder
```

Sets the MAC address of the ranging result.

|                                                                   Parameters                                                                   ||
|--------------|----------------------------------------------------------------------------------------------------------------------------------|
| `macAddress` | [MacAddress](https://developer.android.com/reference/kotlin/android/net/MacAddress.html#)?:Mac address, if not defaults to null. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setMaxTimeBetweenNtbMeasurementsMicros

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

```
fun setMaxTimeBetweenNtbMeasurementsMicros(ntbMaxMeasurementTime: Long): RangingResult.Builder
```

Sets maximum time between measurements in microseconds for IEEE 802.11az non-trigger based ranging. If not set, defaults to[RangingResult.UNSPECIFIED](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#UNSPECIFIED:kotlin.Int).

|                                                                        Parameters                                                                         ||
|-------------------------|----------------------------------------------------------------------------------------------------------------------------------|
| `ntbMaxMeasurementTime` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):non-trigger based ranging maximum measurement time. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setMeasurementBandwidth

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

```
fun setMeasurementBandwidth(measurementBandwidth: Int): RangingResult.Builder
```

Sets the bandwidth used to transmit the RTT measurement frame. If not set, default to[RangingResult.UNSPECIFIED](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#UNSPECIFIED:kotlin.Int).

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Parameters                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ||
|------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `measurementBandwidth` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Measurement bandwidth. Value is[android.net.wifi.ScanResult#CHANNEL_WIDTH_20MHZ](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html#CHANNEL_WIDTH_20MHZ:kotlin.Int),[android.net.wifi.ScanResult#CHANNEL_WIDTH_40MHZ](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html#CHANNEL_WIDTH_40MHZ:kotlin.Int),[android.net.wifi.ScanResult#CHANNEL_WIDTH_80MHZ](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html#CHANNEL_WIDTH_80MHZ:kotlin.Int),[android.net.wifi.ScanResult#CHANNEL_WIDTH_160MHZ](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html#CHANNEL_WIDTH_160MHZ:kotlin.Int),[android.net.wifi.ScanResult#CHANNEL_WIDTH_80MHZ_PLUS_MHZ](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html#CHANNEL_WIDTH_80MHZ_PLUS_MHZ:kotlin.Int), or[android.net.wifi.ScanResult#CHANNEL_WIDTH_320MHZ](https://developer.android.com/reference/kotlin/android/net/wifi/ScanResult.html#CHANNEL_WIDTH_320MHZ:kotlin.Int) |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setMeasurementChannelFrequencyMHz

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

```
fun setMeasurementChannelFrequencyMHz(frequencyMHz: Int): RangingResult.Builder
```

Sets the center frequency of the primary 20 MHz frequency (in MHz) of the channel over which the measurement frames are sent. If not set, default to[RangingResult.UNSPECIFIED](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#UNSPECIFIED:kotlin.Int)

|                                              Parameters                                               ||
|----------------|---------------------------------------------------------------------------------------|
| `frequencyMHz` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Frequency. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setMinTimeBetweenNtbMeasurementsMicros

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

```
fun setMinTimeBetweenNtbMeasurementsMicros(ntbMinMeasurementTime: Long): RangingResult.Builder
```

Sets minimum time between measurements in microseconds for IEEE 802.11az non-trigger based ranging. If not set, defaults to[RangingResult.UNSPECIFIED](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#UNSPECIFIED:kotlin.Int).

|                                                                        Parameters                                                                         ||
|-------------------------|----------------------------------------------------------------------------------------------------------------------------------|
| `ntbMinMeasurementTime` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):non-trigger based ranging minimum measurement time. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setNumAttemptedMeasurements

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

```
fun setNumAttemptedMeasurements(numAttemptedMeasurements: Int): RangingResult.Builder
```

Sets the total number of RTT measurements attempted.

|                                                                             Parameters                                                                             ||
|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------|
| `numAttemptedMeasurements` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Number of attempted measurements. If not set, default to 0. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setNumSuccessfulMeasurements

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

```
fun setNumSuccessfulMeasurements(numSuccessfulMeasurements: Int): RangingResult.Builder
```

Sets the total number of successful RTT measurements.

|                                                                              Parameters                                                                              ||
|-----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
| `numSuccessfulMeasurements` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Number of successful measurements. If not set, default to 0. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setPasnComebackAfterMillis

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

```
fun setPasnComebackAfterMillis(comebackAfterMillis: Long): RangingResult.Builder
```

Set comeback after time. See[getPasnComebackAfterMillis()](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#getPasnComebackAfterMillis()). If not set default value is[RangingResult.UNSPECIFIED](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#UNSPECIFIED:kotlin.Int).

|                                                                                           Parameters                                                                                            ||
|-----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `comebackAfterMillis` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):the ranging initiator (STA) must wait for the specified time before retrying secure ranging |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setPasnComebackCookie

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

```
fun setPasnComebackCookie(pasnComebackCookie: ByteArray): RangingResult.Builder
```

Set comeback cookie. See[getPasnComebackCookie()](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#getPasnComebackCookie()). If not set, default value is null.

|                                                                               Parameters                                                                               ||
|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
| `pasnComebackCookie` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html):an opaque sequence of octets This value cannot be`null`. |

|                                                                          Return                                                                          ||
|---------------------------------------------------------------------------------------------------------------------|-------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. |

### setPeerHandle

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

```
fun setPeerHandle(peerHandle: PeerHandle?): RangingResult.Builder
```

Sets the peer handle. Applicable only for NAN Ranging.

|                                                                                              Parameters                                                                                               ||
|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `peerHandle` | [PeerHandle](https://developer.android.com/reference/kotlin/android/net/wifi/aware/PeerHandle.html#)?:Opaque object used to represent a Wi-Fi Aware peer. If not set, defaults to null. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setRangingAuthenticated

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

```
fun setRangingAuthenticated(isRangingAuthenticated: Boolean): RangingResult.Builder
```

Set whether mutual authentication is done for the ranging. Authentication of ranging enables frame protection also. See[setRangingFrameProtected(boolean)](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#setRangingFrameProtected(kotlin.Boolean)).

|                                                                                Parameters                                                                                ||
|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
| `isRangingAuthenticated` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true if ranging is mutually authenticated, otherwise false. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setRangingFrameProtected

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

```
fun setRangingFrameProtected(isRangingFrameProtected: Boolean): RangingResult.Builder
```

Set whether ranging frames are protected. Frame protection provides both encryption and integrity protection to the ranging frames.

|                                                                              Parameters                                                                              ||
|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
| `isRangingFrameProtected` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true if ranging frames are protected, otherwise false. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setRangingTimestampMillis

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

```
fun setRangingTimestampMillis(timestamp: Long): RangingResult.Builder
```

Sets the time stamp at which the ranging operation was performed. The timestamp is in milliseconds since boot, including time spent in sleep, corresponding to values provided by[android.os.SystemClock#elapsedRealtime()](https://developer.android.com/reference/kotlin/android/os/SystemClock.html#elapsedRealtime()).

|                                                                                                                                                                 Parameters                                                                                                                                                                 ||
|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `timestamp` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):time stamp in milliseconds. If not set, default to 0. Value is a non-negative timestamp in the[android.os.SystemClock#elapsedRealtime()](https://developer.android.com/reference/kotlin/android/os/SystemClock.html#elapsedRealtime())time base. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setRssi

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

```
fun setRssi(rssi: Int): RangingResult.Builder
```

Sets the average RSSI.

|                                                           Parameters                                                           ||
|--------|------------------------------------------------------------------------------------------------------------------------|
| `rssi` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Average RSSI. If not set, defaults to -127. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setSecureHeLtfEnabled

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

```
fun setSecureHeLtfEnabled(isSecureHeLtfEnabled: Boolean): RangingResult.Builder
```

Set whether secure HE-LTF is used for this ranging.

|                                                                          Parameters                                                                           ||
|------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| `isSecureHeLtfEnabled` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true if secure HE-LTF is enabled, otherwise false. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setSecureHeLtfProtocolVersion

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

```
fun setSecureHeLtfProtocolVersion(secureHeLtfProtocolVersion: Int): RangingResult.Builder
```

Set secure HE-LTF protocol version used for this ranging. 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.

|                                                                                 Parameters                                                                                  ||
|------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| `secureHeLtfProtocolVersion` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Secure HE-LTF protocol version. Value is between 0 and 7 inclusive |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setStatus

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

```
fun setStatus(status: Int): RangingResult.Builder
```

Sets the Range result status.

|                                                                                                                                                                                                                                                                                                                                                                                                            Parameters                                                                                                                                                                                                                                                                                                                                                                                                            ||
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `status` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):Ranging result status, if not set defaults to[STATUS_FAIL](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#STATUS_FAIL:kotlin.Int). Value is[android.net.wifi.rtt.RangingResult#STATUS_SUCCESS](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#STATUS_SUCCESS:kotlin.Int),[android.net.wifi.rtt.RangingResult#STATUS_FAIL](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#STATUS_FAIL:kotlin.Int), or[android.net.wifi.rtt.RangingResult#STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult#STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC:kotlin.Int) |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |

### setUnverifiedResponderLocation

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

```
fun setUnverifiedResponderLocation(responderLocation: ResponderLocation?): RangingResult.Builder
```

Sets Responder Location. ResponderLocation is both a Location Configuration Information (LCI) decoder and a Location Civic Report (LCR) decoder for information received from a Wi-Fi Access Point (AP) during Wi-Fi RTT ranging process.

|                                                                                     Parameters                                                                                     ||
|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `responderLocation` | [ResponderLocation](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/ResponderLocation)?:Responder location. If not set, defaults to null. |

|                                                                                        Return                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| [RangingResult.Builder](https://developer.android.com/reference/kotlin/android/net/wifi/rtt/RangingResult.Builder#) | The builder to facilitate chaining. This value cannot be`null`. |