<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/CWEventDelegate/countryCodeDidChangeForWiFiInterface(withName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core WLAN"
    ],
    "preciseIdentifier" : "c:objc(pl)CWEventDelegate(im)countryCodeDidChangeForWiFiInterfaceWithName:"
  },
  "title" : "countryCodeDidChangeForWiFiInterface(withName:)"
}
-->

# countryCodeDidChangeForWiFiInterface(withName:)

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

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

## Parameters

`interfaceName`

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

## Discussion

Register for country code change notifications by sending the [`startMonitoringEvent(with:)`](/documentation/CoreWLAN/CWWiFiClient/startMonitoringEvent(with:)) message to a Wi-Fi client object with the [`CWEventType.countryCodeDidChange`](/documentation/CoreWLAN/CWEventType/countryCodeDidChange) event type.

Use the Wi-Fi interface’s [`countryCode()`](/documentation/CoreWLAN/CWInterface/countryCode()) method to query the currently adopted country code.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)