Instance Method

centralManager(_:connectionEventDidOccur:for:)

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

Declaration

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

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

func centralManager(CBCentralManager, didConnect: CBPeripheral)

Tells the delegate that the central manager connected to a peripheral.

func centralManager(CBCentralManager, didDisconnectPeripheral: CBPeripheral, error: Error?)

Tells the delegate that the central manager disconnected from a peripheral.

func centralManager(CBCentralManager, didFailToConnect: CBPeripheral, error: Error?)

Tells the delegate the central manager failed to create a connection with a peripheral.