Language

WifiAwareNetworkSpecifier.Builder.SetChannelFrequencyMhz Method

Definition

Configure the Channel frequency for the Wi-Fi Aware connection being requested.

[Android.Runtime.Register("setChannelFrequencyMhz", "(IZ)Landroid/net/wifi/aware/WifiAwareNetworkSpecifier$Builder;", "", ApiSince=33)]
public Android.Net.Wifi.Aware.WifiAwareNetworkSpecifier.Builder SetChannelFrequencyMhz(int channelInMhz, bool required);
[<Android.Runtime.Register("setChannelFrequencyMhz", "(IZ)Landroid/net/wifi/aware/WifiAwareNetworkSpecifier$Builder;", "", ApiSince=33)>]
member this.SetChannelFrequencyMhz : int * bool -> Android.Net.Wifi.Aware.WifiAwareNetworkSpecifier.Builder

Parameters

channelInMhz
Int32

Channel frequency in Mhz. Value is 0 or greater

required
Boolean

If set to true, Channel request is specified and must be respected. If the firmware cannot honor the request then the data-path request is rejected. Otherwise, requested channelInMhz is a recommendation and may be overridden by the firmware.

Returns

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

Attributes

Remarks

Configure the Channel frequency for the Wi-Fi Aware connection being requested. This method is optional - if not called, then channelInMhz to use will be decided by firmware. Only use this when WifiAwareManager.isSetChannelOnDataPathSupported() is true, otherwise the set channelInMhz will be ignored.

Android reference for android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder.setChannelFrequencyMhz.

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