---
title: "registerForConnectionEvents(options:)"
framework: corebluetooth
role: symbol
role_heading: Instance Method
path: "corebluetooth/cbcentralmanager/registerforconnectionevents(options:)"
---

# registerForConnectionEvents(options:)

Register for an event notification when the central manager makes a connection matching the given options.

## Declaration

```swift
func registerForConnectionEvents(options: [CBConnectionEventMatchingOption : Any]? = nil)
```

## Parameters

- `options`: A dictionary that specifies options for connection events. See doc://com.apple.corebluetooth/documentation/CoreBluetooth/peripheral-connection-options for a list of possible options.

## Discussion

Discussion When the central manager makes a connection that matches the options, it calls the delegate’s centralManager(_:connectionEventDidOccur:for:) method.

## See Also

### Receiving Connection Events

- [Peripheral Connection Options](corebluetooth/peripheral-connection-options.md)
- [CBConnectionEvent](corebluetooth/cbconnectionevent.md)
- [CBConnectionEventMatchingOption](corebluetooth/cbconnectioneventmatchingoption.md)
