Contents

startMonitoringEvent(with:)

Register for specific Wi-Fi event notifications.

Declaration

func startMonitoringEvent(with type: CWEventType) throws

Parameters

  • type:

    The type of event notifications to register for. See 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 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.

See Also

Monitoring Events