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

# powerStateDidChangeForWiFiInterface(withName:)

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

```
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:)`](/documentation/CoreWLAN/CWWiFiClient/startMonitoringEvent(with:)) message to a Wi-Fi client object with the [`CWEventType.powerDidChange`](/documentation/CoreWLAN/CWEventType/powerDidChange) event type.

Use the Wi-Fi interface’s [`powerOn()`](/documentation/CoreWLAN/CWInterface/powerOn()) method to query the current Wi-Fi power state.

---

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)