CBMutableCharacteristic objects represent the characteristics of a local peripheral’s service (local peripheral devices are represented by
CBPeripheralManager objects). This class adds write access to many of the properties in the
CBCharacteristic class it inherits from.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
You use this class to create a characteristic and to set its properties and permissions as desired. After you create a characteristic and add it to a local service, you can publish it (and the service) to the peripheral’s local database using the
add(_:) method of the
CBPeripheralManager class. After you publish a characteristic, the characteristic is cached and you can no longer make changes to it.
Initializing a Mutable Characteristic
Managing a Mutable Characteristic
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software