A service with writeable property values.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Bluetooth
CBMutable class adds write access to all of the properties in the
CBService class it inherits from. You use this class to create a service or an included service on a local peripheral device (represented by a
CBPeripheral object). After creating a service, you can add it to the peripheral’s local database using the
add(_:) method of the
CBPeripheral class. After you add a service to the peripheral’s local database, Core Bluetooth caches the service and you can no longer make changes to it.