Language

WifiNetworkSpecifier.Builder.SetPreferredChannelsFrequenciesMhz Method

Definition

Specifies the preferred channels for this network.

[Android.Runtime.Register("setPreferredChannelsFrequenciesMhz", "([I)Landroid/net/wifi/WifiNetworkSpecifier$Builder;", "", ApiSince=34)]
public Android.Net.Wifi.WifiNetworkSpecifier.Builder SetPreferredChannelsFrequenciesMhz(int[] channelFreqs);
[<Android.Runtime.Register("setPreferredChannelsFrequenciesMhz", "([I)Landroid/net/wifi/WifiNetworkSpecifier$Builder;", "", ApiSince=34)>]
member this.SetPreferredChannelsFrequenciesMhz : int[] -> Android.Net.Wifi.WifiNetworkSpecifier.Builder

Parameters

channelFreqs
Int32[]

an Array of the channels in MHz. The length of the array must not exceed WifiManager.getMaxNumberOfChannelsPerNetworkSpecifierRequest() This value cannot be null.

Returns

Instance of Builder to enable chaining of the builder method. This value cannot be null.

Attributes

Remarks

Specifies the preferred channels for this network. The channels set in the request will be used to optimize the scan and connection.

Should only be set to request local-only network; If not set, defaults to an empty array and device will do a full band scan.

Android reference for android.net.wifi.WifiNetworkSpecifier.Builder.setPreferredChannelsFrequenciesMhz.

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