Language

SubscribeConfig.Builder.SetInstantCommunicationModeEnabled Method

Definition

Configure whether to enable and use instant communication for this subscribe session.

[Android.Runtime.Register("setInstantCommunicationModeEnabled", "(ZI)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=33)]
public Android.Net.Wifi.Aware.SubscribeConfig.Builder SetInstantCommunicationModeEnabled(bool enabled, int band);
[<Android.Runtime.Register("setInstantCommunicationModeEnabled", "(ZI)Landroid/net/wifi/aware/SubscribeConfig$Builder;", "", ApiSince=33)>]
member this.SetInstantCommunicationModeEnabled : bool * int -> Android.Net.Wifi.Aware.SubscribeConfig.Builder

Parameters

enabled
Boolean

true for enable instant communication mode, default is false.

band
Int32

When setting to ScanResult.WIFI_BAND_5_GHZ, device will try to enable instant communication mode on 5Ghz, but may fall back to 2.4Ghz due to regulatory requirements. Value is one of the following: ScanResult.WIFI_BAND_24_GHZ; ScanResult.WIFI_BAND_5_GHZ

Returns

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

Attributes

Remarks

Configure whether to enable and use instant communication for this subscribe session. Instant communication will speed up service discovery and any data-path set up as part of this session. Use Characteristics.isInstantCommunicationModeSupported() to check if the device supports this feature.

Note: due to increased power requirements of this mode - it will only remain enabled for 30 seconds from the time the discovery session is started.

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

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