Builder
class Builder
kotlin.Any | |
↳ | android.net.wifi.rtt.SecureRangingConfig.Builder |
Builder for SecureRangingConfig
Summary
Public constructors | |
---|---|
Builder(pasnConfig: PasnConfig) Builder constructor. |
Public methods | |
---|---|
SecureRangingConfig |
build() Returns a |
SecureRangingConfig.Builder |
setRangingFrameProtectionEnabled(enableRangingFrameProtection: Boolean) Enable or disable ranging frame protection and returns a reference to this Builder enabling method chaining. |
SecureRangingConfig.Builder |
setSecureHeLtfEnabled(enableSecureHeLtf: Boolean) Enable or disable secure HE-LTF and returns a reference to this Builder enabling method chaining. |
Public constructors
Builder
Builder(pasnConfig: PasnConfig)
Builder constructor.
Parameters | |
---|---|
pasnConfig |
PasnConfig: PASN configuration This value cannot be null . |
Public methods
build
fun build(): SecureRangingConfig
Returns a SecureRangingConfig
built from the parameters previously set.
Return | |
---|---|
SecureRangingConfig |
a SecureRangingConfig built with parameters of this SecureRangingConfig.Builder This value cannot be null . |
setRangingFrameProtectionEnabled
fun setRangingFrameProtectionEnabled(enableRangingFrameProtection: Boolean): SecureRangingConfig.Builder
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 |
Return | |
---|---|
SecureRangingConfig.Builder |
a reference to this Builder This value cannot be null . |
setSecureHeLtfEnabled
fun setSecureHeLtfEnabled(enableSecureHeLtf: Boolean): SecureRangingConfig.Builder
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 |
Return | |
---|---|
SecureRangingConfig.Builder |
a reference to this Builder This value cannot be null . |