---
title: "modeDidChangeForWiFiInterface(withName:)"
framework: corewlan
role: symbol
role_heading: Instance Method
path: "corewlan/cweventdelegate/modedidchangeforwifiinterface(withname:)"
---

# modeDidChangeForWiFiInterface(withName:)

Tells the delegate that the operating mode has changed.

## Declaration

```swift
optional func modeDidChangeForWiFiInterface(withName interfaceName: String)
```

## Parameters

- `interfaceName`: The name of the Wi-Fi interface on which the operating mode changed.

## Discussion

Discussion Register for operating mode change notifications by sending the startMonitoringEvent(with:) message to a Wi-Fi client object with the CWEventType.modeDidChange event type. Use the Wi-Fi interface’s interfaceMode() method to query the current operating mode.

## See Also

### Instance Methods

- [bssidDidChangeForWiFiInterface(withName:)](corewlan/cweventdelegate/bssiddidchangeforwifiinterface(withname:).md)
- [clientConnectionInterrupted()](corewlan/cweventdelegate/clientconnectioninterrupted().md)
- [clientConnectionInvalidated()](corewlan/cweventdelegate/clientconnectioninvalidated().md)
- [countryCodeDidChangeForWiFiInterface(withName:)](corewlan/cweventdelegate/countrycodedidchangeforwifiinterface(withname:).md)
- [linkDidChangeForWiFiInterface(withName:)](corewlan/cweventdelegate/linkdidchangeforwifiinterface(withname:).md)
- [linkQualityDidChangeForWiFiInterface(withName:rssi:transmitRate:)](corewlan/cweventdelegate/linkqualitydidchangeforwifiinterface(withname:rssi:transmitrate:).md)
- [powerStateDidChangeForWiFiInterface(withName:)](corewlan/cweventdelegate/powerstatedidchangeforwifiinterface(withname:).md)
- [scanCacheUpdatedForWiFiInterface(withName:)](corewlan/cweventdelegate/scancacheupdatedforwifiinterface(withname:).md)
- [ssidDidChangeForWiFiInterface(withName:)](corewlan/cweventdelegate/ssiddidchangeforwifiinterface(withname:).md)
