---
title: CBConnectionEvent
framework: corebluetooth
role: symbol
role_heading: Enumeration
path: corebluetooth/cbconnectionevent
---

# CBConnectionEvent

A change to the connection state of a peer.

## Declaration

```swift
enum CBConnectionEvent
```

## Topics

### Events

- [CBConnectionEvent.peerConnected](corebluetooth/cbconnectionevent/peerconnected.md)
- [CBConnectionEvent.peerDisconnected](corebluetooth/cbconnectionevent/peerdisconnected.md)

### Initializers

- [init(rawValue:)](corebluetooth/cbconnectionevent/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Receiving Connection Events

- [registerForConnectionEvents(options:)](corebluetooth/cbcentralmanager/registerforconnectionevents(options:).md)
- [Peripheral Connection Options](corebluetooth/peripheral-connection-options.md)
- [CBConnectionEventMatchingOption](corebluetooth/cbconnectioneventmatchingoption.md)
