Language

SubscribeConfig.Builder.SetFrameworkOffloadedPairingEnabled(Boolean) Method

Definition

Configure whether to enable framework offloaded auto-pairing for this subscribe session.

[Android.Runtime.Register("setFrameworkOffloadedPairingEnabled", "(Z)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=37)]
public Android.Net.Wifi.Aware.SubscribeConfig.Builder SetFrameworkOffloadedPairingEnabled(bool enabled);
[<Android.Runtime.Register("setFrameworkOffloadedPairingEnabled", "(Z)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=37)>]
member this.SetFrameworkOffloadedPairingEnabled : bool -> Android.Net.Wifi.Aware.SubscribeConfig.Builder

Parameters

enabled
Boolean

If true, enable framework offloaded auto-pairing.

Returns

the current Builder builder, enabling chaining of builder methods. This value cannot be null.

Attributes

Remarks

Configure whether to enable framework offloaded auto-pairing for this subscribe session.

If this is enabled, the wifi framework will attempt to perform Wi-Fi Aware pairing automatically before starting the NAN datapath. When pairing happens for the first time, user authorization may be required (such as entering a pincode or password on the system UI).

As a result, apps are highly recommended to increase their connection timeout to at least 30 seconds when starting a datapath with this field enabled. Additionally, if the app is using framework offloaded pairing, the framework will override the AwarePairingConfig with a framework managed configuration.

Android reference for android.net.wifi.aware.SubscribeConfig.Builder.setFrameworkOffloadedPairingEnabled.

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