Invoked when you publish a service, and any of its associated characteristics and characteristic descriptors, to the local Generic Attribute Profile (GATT) database.
- iOS 6.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 4.0+
- Mac Catalyst 13.0+Beta
- Core Bluetooth
The peripheral manager providing this information.
The service that was added to the local GATT database.
If an error occurred, the cause of the failure.
This method is invoked when your app calls the
add method to publish a service to the local peripheral’s GATT database. If the service is successfully published to the local database, the
error parameter is
nil. If unsuccessful, the
error parameter returns the cause of the failure.