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

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(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 wait(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 wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

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.