Protocol

CWEventDelegate

The interface a Wi-Fi client object uses to notify its delegate about Wi-Fi events.

Declaration

protocol CWEventDelegate

Overview

An object that adopts the CWEventDelegate protocol and that is assigned as the delegate of a CWWiFiClient object receives notifications of changes on a Wi-Fi interface. Use the startMonitoringEvent(with:) method to indicate to the client the event types for which you want to receive notifications. Use the stopMonitoringEvent(with:) method to stop receiving a particular notification type, or the stopMonitoringAllEvents() method to stop receiving all notifications.

Topics

Instance Methods

func bssidDidChangeForWiFiInterface(withName: String)

Tells the delegate that the current BSSID has changed.

func clientConnectionInterrupted()

Tells the delegate that the connection to the Wi-Fi subsystem is temporarily interrupted.

func clientConnectionInvalidated()

Tells the delegate that the connection to the Wi-Fi subsystem is permanently invalidated.

func countryCodeDidChangeForWiFiInterface(withName: String)

Tells the delegate that the currently adopted country code has changed.

func linkDidChangeForWiFiInterface(withName: String)

Tells the delegate that the Wi-Fi link state changed.

func modeDidChangeForWiFiInterface(withName: String)

Tells the delegate that the operating mode has changed.

func powerStateDidChangeForWiFiInterface(withName: String)

Tells the delegate that the Wi-Fi power state changed.

func scanCacheUpdatedForWiFiInterface(withName: String)

Tells the delegate that the Wi-Fi interface's scan cache has been updated with new results.

func ssidDidChangeForWiFiInterface(withName: String)

Tells the delegate that the current SSID has changed.