powerStateDidChangeForWiFiInterface(withName:)
Tells the delegate that the Wi-Fi power state changed.
Declaration
optional func powerStateDidChangeForWiFiInterface(withName interfaceName: String)Parameters
- interfaceName:
The name of the Wi-Fi interface on which the power changed.
Discussion
Register for power state change notifications by sending the startMonitoringEvent(with:) message to a Wi-Fi client object with the CWEventType.powerDidChange event type.
Use the Wi-Fi interface’s powerOn() method to query the current Wi-Fi power state.
See Also
Instance Methods
bssidDidChangeForWiFiInterface(withName:)clientConnectionInterrupted()clientConnectionInvalidated()countryCodeDidChangeForWiFiInterface(withName:)linkDidChangeForWiFiInterface(withName:)linkQualityDidChangeForWiFiInterface(withName:rssi:transmitRate:)modeDidChangeForWiFiInterface(withName:)scanCacheUpdatedForWiFiInterface(withName:)ssidDidChangeForWiFiInterface(withName:)