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

# countryCodeDidChangeForWiFiInterface(withName:)

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

## Declaration

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

## Parameters

- `interfaceName`: The name of the Wi-Fi interface on which the country code changed.

## Discussion

Discussion Register for country code change notifications by sending the startMonitoringEvent(with:) message to a Wi-Fi client object with the CWEventType.countryCodeDidChange event type. Use the Wi-Fi interface’s countryCode() method to query the currently adopted country code.

## See Also

### Instance Methods

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