Language

WifiNetworkSpecifier.Builder.SetBand(Int32) Method

Definition

Specifies the band requested for this network.

[Android.Runtime.Register("setBand", "(I)Landroid/net/wifi/WifiNetworkSpecifier$Builder;", "", ApiSince=31)]
public Android.Net.Wifi.WifiNetworkSpecifier.Builder SetBand(int band);
[<Android.Runtime.Register("setBand", "(I)Landroid/net/wifi/WifiNetworkSpecifier$Builder;", "", ApiSince=31)>]
member this.SetBand : int -> Android.Net.Wifi.WifiNetworkSpecifier.Builder

Parameters

band
Int32

The requested band. Value is one of the following: ScanResult.UNSPECIFIED; ScanResult.WIFI_BAND_24_GHZ; ScanResult.WIFI_BAND_5_GHZ; ScanResult.WIFI_BAND_6_GHZ; ScanResult.WIFI_BAND_60_GHZ

Returns

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

Attributes

Remarks

Specifies the band requested for this network. Only a single band can be requested. An app can file multiple callbacks concurrently if they need to know about multiple bands.

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

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