Platforms to show: All Mac Windows Linux Cross-Platform

Back to CBMutableServiceMBS class.

CBMutableServiceMBS.Constructor(UUID as CBUUIDMBS, isPrimary as Boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a newly initialized mutable service specified by UUID and service type.

UUID: A 128-bit UUID that identifies the service.
isPrimary: A Boolean value indicating whether the type of service is primary or secondary. If the value is true, the type of service is primary. If the value is false, the type of service is secondary.

CBMutableServiceMBS.setCharacteristics(characteristics() as CBCharacteristicMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets list of characteristics of a service.

An array containing CBCharacteristic objects that represent a service’s characteristics. Characteristics provide further details about a peripheral’s service. For example, a heart rate service may contain one characteristic that describes the intended body location of the device’s heart rate sensor and another characteristic that transmits heart rate measurement data.

CBMutableServiceMBS.setIncludedServices(includedServices() as CBServiceMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Bluetooth MBS Bluetooth Plugin 18.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the list of included services.

A service of a peripheral may contain a reference to other services that are available on the peripheral. These other services are the included services of the service.

The items on this page are in the following plugins: MBS Bluetooth Plugin.


The biggest plugin in space...