WifiNetworkSpecifier.Builder.SetPreferredChannelsFrequenciesMhz Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.