Class

CBMutableService

The CBMutableService 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 CBPeripheralManager object). After you create a service, you can add it to the peripheral’s local database using the addService: method of the CBPeripheralManager class. After you add a service to the peripheral’s local database, the service is cached and you can no longer make changes to it.

Declaration

@interface CBMutableService : CBService

Topics

Initializing a Mutable Service

- initWithType:primary:

Returns a newly initialized mutable service specified by UUID and service type.

Managing a Mutable Service

characteristics

A list of characteristics of a service.

includedServices

A list of included services.

Relationships

Inherits From

Beta Software

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