A Boolean value indicating whether the type of service is primary or secondary.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 4.0+
- Core Bluetooth
A peripheral’s service is either primary or secondary. A primary service describes the primary function of a device and can be included by another service. A secondary service describes a service that is relevant only in the context of another service that has referenced it. For example, the primary service of a heart rate monitor may be to expose heart rate data from the monitor’s heart rate sensor, whereas a secondary service may be to expose the sensor’s battery data. If the value of this property is
true, the type of service is primary. If the value of this property is
false, the type of service is secondary.