<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/CWWiFiClient/startMonitoringEvent(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core WLAN"
    ],
    "preciseIdentifier" : "c:objc(cs)CWWiFiClient(im)startMonitoringEventWithType:error:"
  },
  "title" : "startMonitoringEvent(with:)"
}
-->

# startMonitoringEvent(with:)

Register for specific Wi-Fi event notifications.

```
func startMonitoringEvent(with type: CWEventType) throws
```

## Parameters

`type`

The type of event notifications to register for. See [`CWEventType`](/documentation/CoreWLAN/CWEventType) for a list of possible values.

## Discussion

After registering for notifications, when an event of the given type happens, the client sends an appropriate message to its delegate. See the [`CWEventDelegate`](/documentation/CoreWLAN/CWEventDelegate) protocol for the complete list of possible messages.

Use the [`stopMonitoringEvent(with:)`](/documentation/CoreWLAN/CWWiFiClient/stopMonitoringEvent(with:)) method when you want to stop receiving notifications of the given event type. Use [`stopMonitoringAllEvents()`](/documentation/CoreWLAN/CWWiFiClient/stopMonitoringAllEvents()) to stop receiving all notifications from a client.

> Note:
> In order to monitor Wi-Fi events, you must specify the `com.apple.wifi.events` entitlement for your app.

---

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)