Metadata about the units and other properties of the characteristic.
SDKs
- iOS 8.0+
- tvOS 10.0+
- watchOS 2.0+
Framework
- Home
Kit
Declaration
var metadata: HMCharacteristic Metadata? { get }
Discussion
You can typically infer a lot about a characteristic’s value
from its characteristic
, like if the value is a string, a number, or in some other format; what the units are; and what range of values to expect. To obtain this information explicitly, inspect the characteristic’s metadata
, represented by an instance of the HMCharacteristic
class.