SoftApConfiguration.Builder.SetChannels(SparseIntArray) 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 channels and associated bands for the APs.
[Android.Runtime.Register("setChannels", "(Landroid/util/SparseIntArray;)Landroid/net/wifi/SoftApConfiguration$Builder;", "", ApiSince=36)]
public Android.Net.Wifi.SoftApConfiguration.Builder SetChannels(Android.Util.SparseIntArray channels);
[<Android.Runtime.Register("setChannels", "(Landroid/util/SparseIntArray;)Landroid/net/wifi/SoftApConfiguration$Builder;", "", ApiSince=36)>]
member this.SetChannels : Android.Util.SparseIntArray -> Android.Net.Wifi.SoftApConfiguration.Builder
Parameters
- channels
- SparseIntArray
SparseIntArray (key: BandType, value: channel) consists of BAND_ and corresponding channel. This value cannot be null.
Returns
Builder for chaining. This value cannot be null.
- Attributes
Remarks
Specifies the channels and associated bands for the APs.
The API contains (band, channel) input since the 6GHz band uses the same channel numbering scheme as is used in the 2.4GHz and 5GHz band. Therefore, both are needed to uniquely identify individual channels.
Reference the Wi-Fi channel numbering and the channelization in IEEE 802.11-2016 specifications, section 17.3.8.4.2, 17.3.8.4.3 and Table 15-6.
Using the special value 0 which has the framework auto-select a valid channel from the band configured. When more than 1 channel/band is set, this will bring up concurrent APs on the requested channels and bands (if possible). Use WifiManager.isBridgedApConcurrencySupported() to determine whether concurrent APs are supported. If not set, the default value is SoftApConfiguration.BAND_2GHZ with the special channel value 0 which has the framework auto-select from SoftApConfiguration.BAND_2GHZ.
Android reference for android.net.wifi.SoftApConfiguration.Builder.setChannels.
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.