---
title: "startMonitoringEvent(with:)"
framework: corewlan
role: symbol
role_heading: Instance Method
path: "corewlan/cwwificlient/startmonitoringevent(with:)"
---

# startMonitoringEvent(with:)

Register for specific Wi-Fi event notifications.

## Declaration

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

## Parameters

- `type`: The type of event notifications to register for. See doc://com.apple.corewlan/documentation/CoreWLAN/CWEventType for a list of possible values.

## Discussion

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 protocol for the complete list of possible messages. Use the stopMonitoringEvent(with:) method when you want to stop receiving notifications of the given event type. Use 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.

## See Also

### Monitoring Events

- [stopMonitoringAllEvents()](corewlan/cwwificlient/stopmonitoringallevents().md)
- [stopMonitoringEvent(with:)](corewlan/cwwificlient/stopmonitoringevent(with:).md)
