The type of the characteristic.
- iOS 8.0+
- tvOS 10.0+
- watchOS 2.0+
characteristic is a string constant that tells you what the characteristic’s
value represents. For example, if you detect a characteristic type of
HMCharacteristic, then you know that the corresponding
value is a measure of the current temperature.
From the type, you can typically infer the value’s format. The value for the current temperature is always a floating point number measured in degrees Celsius, as shown in the code snippet above. You can also use the characteristic’s
metadata to get explicit and detailed guidance on how to format the value.
See Characteristic Types for a list of standard types.