Instance Method

peripheralManagerDidStartAdvertising(_:error:)

Invoked when you start advertising the local peripheral device’s data.

Declaration

optional func peripheralManagerDidStartAdvertising(_ peripheral: CBPeripheralManager, error: Error?)

Parameters

peripheral

The peripheral manager providing this information.

error

If an error occurred, the cause of the failure.

Discussion

This method is invoked when your app calls the startAdvertising(_:) method to begin advertising the local peripheral device’s data. If successful, the error parameter is nil. If there is a problem advertising the data, the error parameter returns the cause of the failure.