[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/net/wifi/rtt/SecureRangingConfig.Builder [Back]  [Original]

SecureRangingConfig.Builder  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.

SecureRangingConfig.Builder


public static final class SecureRangingConfig.Builder
extends Object

java.lang.Object
   ↳ android.net.wifi.rtt.SecureRangingConfig.Builder


Builder for SecureRangingConfig

Summary

Public constructors

Builder(PasnConfig pasnConfig)

Builder constructor.

Public methods

SecureRangingConfig build()

Returns a SecureRangingConfig built from the parameters previously set.

SecureRangingConfig.Builder setRangingFrameProtectionEnabled(boolean enableRangingFrameProtection)

Enable or disable ranging frame protection and returns a reference to this Builder enabling method chaining.

SecureRangingConfig.Builder setSecureHeLtfEnabled(boolean enableSecureHeLtf)

Enable or disable secure HE-LTF and returns a reference to this Builder enabling method chaining.

Inherited methods

Public constructors

Builder

Added in API level 36
public Builder (PasnConfig pasnConfig)

Builder constructor.

Parameters
pasnConfig PasnConfig: PASN configuration.
This value cannot be null.

Public methods

build

Added in API level 36
public SecureRangingConfig build ()

Returns a SecureRangingConfig built from the parameters previously set.

Returns
SecureRangingConfig a SecureRangingConfig built with parameters of this SecureRangingConfig.Builder
This value cannot be null.

setRangingFrameProtectionEnabled

Added in API level 36
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.

Parameters
enableRangingFrameProtection boolean: the enableRangingFrameProtection to set

Returns
SecureRangingConfig.Builder a reference to this Builder.
This value cannot be null.

setSecureHeLtfEnabled

Added in API level 36
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.

Parameters
enableSecureHeLtf boolean: the enableSecureHeLtf to set

Returns
SecureRangingConfig.Builder a reference to this Builder.
This value cannot be null.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page