Contents

CBPeripheralManagerDelegate

A protocol that provides updates for local peripheral state and interactions with remote central devices.

Declaration

protocol CBPeripheralManagerDelegate : NSObjectProtocol

Overview

The delegate of a CBPeripheralManager object must adopt the CBPeripheralManagerDelegate protocol, which consists of numerous optional methods and one required method. The delegate uses the protocol’s optional methods to verify publishing and advertising, and to monitor read, write, and subscription requests from remote central devices.

The protocol’s required one method, peripheralManagerDidUpdateState(_:), which Core Bluetooth calls whenever the peripheral manager’s state updates to indicate whether the peripheral manager is available.

Topics

Monitoring Changes to the Peripheral Manager’s State

Adding Services

Advertising Peripheral Data

Monitoring Subscriptions to Characteristic Values

Receiving Read and Write Requests

Using L2CAP Channels

See Also

Peripherals