Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder#inhmethods)

# SecureRangingConfig.Builder

*** ** * ** ***


`
public
static
final

class
SecureRangingConfig.Builder
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

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

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig`

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder#Builder(android.net.wifi.rtt.PasnConfig)(https://developer.android.com/reference/android/net/wifi/rtt/PasnConfig pasnConfig) ` Builder constructor. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig` | ` https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder#build()() ` Returns a `SecureRangingConfig` built from the parameters previously set. |
| ` https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder` | ` https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder#setRangingFrameProtectionEnabled(boolean)(boolean enableRangingFrameProtection) ` Enable or disable ranging frame protection and returns a reference to this Builder enabling method chaining. |
| ` https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder` | ` https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder#setSecureHeLtfEnabled(boolean)(boolean enableSecureHeLtf) ` Enable or disable secure HE-LTF and returns a reference to this Builder enabling method chaining. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` 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 https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` 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` | ` 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` | ` 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*. | ||

## Public constructors

### Builder

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

```
public Builder (PasnConfig pasnConfig)
```

Builder constructor.

<br />

| Parameters ||
|---|---|
| `pasnConfig` | `PasnConfig`: PASN configuration. This value cannot be `null`. <br /> |

## Public methods

### build

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

```
public SecureRangingConfig build ()
```

Returns a `SecureRangingConfig` built from the parameters previously set.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig` | a `SecureRangingConfig` built with parameters of this `SecureRangingConfig.Builder` This value cannot be `null`. <br /> |

### setRangingFrameProtectionEnabled

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

```
public SecureRangingConfig.Builder setRangingFrameProtectionEnabled (boolean enableRangingFrameProtection)
```

Enable or disable ranging frame protection and returns a reference to this Builder
enabling method chaining. If not set, ranging frame protection is enabled.

<br />

| Parameters ||
|---|---|
| `enableRangingFrameProtection` | `boolean`: the `enableRangingFrameProtection` to set <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder` | a reference to this Builder. This value cannot be `null`. <br /> |

### setSecureHeLtfEnabled

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

```
public SecureRangingConfig.Builder setSecureHeLtfEnabled (boolean enableSecureHeLtf)
```

Enable or disable secure HE-LTF and returns a reference to this Builder enabling
method chaining. If not set, secure HE-LTF is enabled.

<br />

| Parameters ||
|---|---|
| `enableSecureHeLtf` | `boolean`: the `enableSecureHeLtf` to set <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder` | a reference to this Builder. This value cannot be `null`. <br /> |