Language

SubscribeConfig.Builder.SetPairingConfig(AwarePairingConfig) Method

Definition

Sets the pairing configuration for this subscribe session.

[Android.Runtime.Register("setPairingConfig", "(Landroid/net/wifi/aware/AwarePairingConfig;)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=34)]
public Android.Net.Wifi.Aware.SubscribeConfig.Builder SetPairingConfig(Android.Net.Wifi.Aware.AwarePairingConfig? config);
[<Android.Runtime.Register("setPairingConfig", "(Landroid/net/wifi/aware/AwarePairingConfig;)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=34)>]
member this.SetPairingConfig : Android.Net.Wifi.Aware.AwarePairingConfig -> Android.Net.Wifi.Aware.SubscribeConfig.Builder

Parameters

config
AwarePairingConfig

The pairing configuration advertised to the peer, or null. A non-null configuration requires IsAwarePairingSupported to be true.

Returns

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

Attributes

Remarks

The peer can use this information to choose the configuration for later bootstrapping, pairing setup, or pairing verification requests.

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

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