Language

RangingRequest.Builder.SetSecurityMode(Int32) Method

Definition

Sets the overall security mode for ranging, determining if secure ranging is attempted with each responder and if fallback to unauthenticated secure ranging is permitted.

[Android.Runtime.Register("setSecurityMode", "(I)Landroid/net/wifi/rtt/RangingRequest$Builder;", "", ApiSince=36)]
public Android.Net.Wifi.Rtt.RangingRequest.Builder SetSecurityMode(int securityMode);
[<Android.Runtime.Register("setSecurityMode", "(I)Landroid/net/wifi/rtt/RangingRequest$Builder;", "", ApiSince=36)>]
member this.SetSecurityMode : int -> Android.Net.Wifi.Rtt.RangingRequest.Builder

Parameters

securityMode
Int32

security mode for ranging. Value is one of the following: RangingRequest.SECURITY_MODE_OPEN; RangingRequest.SECURITY_MODE_OPPORTUNISTIC; RangingRequest.SECURITY_MODE_SECURE_AUTH

Returns

The builder, to facilitate chaining builder.setXXX(..).setXXX(..). This value cannot be null.

Attributes

Remarks

Sets the overall security mode for ranging, determining if secure ranging is attempted with each responder and if fallback to unauthenticated secure ranging is permitted. The mode also permits retry with no security when secure ranging fails. If not set, default mode will be RangingRequest.SECURITY_MODE_OPPORTUNISTIC.

See SECURITY_MODE_* for different modes of operation.

Android reference for android.net.wifi.rtt.RangingRequest.Builder.setSecurityMode.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to