A characteristic of a local peripheral’s service.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Bluetooth
CBMutable objects represent the characteristics of a local peripheral’s service. This class adds write access to many of the properties in the
CBCharacteristic class, which it inherits from.
You use this class to create a characteristic and to set its properties and permissions as desired. After you create and add a characteristic to a local service, you can publish it (and the service) to the peripheral’s local database with the
add(_:) method of the
CBPeripheral class. After you publish a characteristic, Core Bluetooth caches the characteristic and you can’t make changes to it.