ChannelSetting
public protocol ChannelSetting : AnyObject
Setting providing access to the Wifi access point channel setup.
-
Tells if the setting value has been changed and is waiting for change confirmation.
Declaration
Swift
var updating: Bool { get }
-
Current selection mode of the access point channel.
Declaration
Swift
var selectionMode: ChannelSelectionMode { get }
-
Set of channels to which the access point may be configured.
Declaration
Swift
var availableChannels: Set<WifiChannel> { get }
-
Access point’s current channel.
Declaration
Swift
var channel: WifiChannel { get }
-
Changes the access point current channel.
Declaration
Swift
func select(channel: WifiChannel)
Parameters
channel
new channel to use
-
Tells whether automatic channel selection on any frequency band is available.
Some devices, for instance remote controls, don’t support auto-selection.
Declaration
Swift
func canAutoSelect() -> Bool
Return Value
true
ifautoSelect()
can be called -
Requests the device to select the most appropriate channel for the access point automatically.
The device will run its auto-selection process and eventually may change the current channel. The device will also remain in this auto-selection mode, that is, it will run auto-selection to setup the channel on subsequent boots, until the application selects a channel manually (with
select(channel:)
)Declaration
Swift
func autoSelect()
-
Tells whether automatic channel selection on a given frequency band is available.
Depending on the country and environment setup, and the currently allowed channels, some auto-selection modes may not be available to the application. Also, some devices, for instance remote controls, don’t support auto-selection.
Declaration
Swift
func canAutoSelect(onBand band: Band) -> Bool
Parameters
band
the frequency band
Return Value
true
ifautoSelect()
can be called -
Requests the device to select the most appropriate channel for the access point automatically.
The device will run its auto-selection process and eventually may change the current channel. The device will also remain in this auto-selection mode, that is, it will run auto-selection to setup the channel on subsequent boots, until the application selects a channel manually (with
select(channel:)
)Declaration
Swift
func autoSelect(onBand band: Band)
Parameters
band
the frequency band on which the automatic selection should be done