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

public Builder (PasnConfig pasnConfig)

Builder constructor.

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

Public methods

build

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

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

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.