---
title: "centralManager(_:connectionEventDidOccur:for:)"
framework: corebluetooth
role: symbol
role_heading: Instance Method
path: "corebluetooth/cbcentralmanagerdelegate/centralmanager(_:connectioneventdidoccur:for:)"
---

# centralManager(_:connectionEventDidOccur:for:)

Tells the delegate that a connection event occurred which matches the registered options.

## Declaration

```swift
optional func centralManager(_ central: CBCentralManager, connectionEventDidOccur event: CBConnectionEvent, for peripheral: CBPeripheral)
```

## Discussion

Discussion The manager calls this method when it observes a connection event that matches the options provided to registerForConnectionEvents(options:).

## See Also

### Monitoring Connections with Peripherals

- [centralManager(_:didConnect:)](corebluetooth/cbcentralmanagerdelegate/centralmanager(_:didconnect:).md)
- [centralManager(_:didDisconnectPeripheral:error:)](corebluetooth/cbcentralmanagerdelegate/centralmanager(_:diddisconnectperipheral:error:).md)
- [centralManager(_:didFailToConnect:error:)](corebluetooth/cbcentralmanagerdelegate/centralmanager(_:didfailtoconnect:error:).md)
