Contents

metadata

Metadata about the units and other properties of the characteristic.

Declaration

var metadata: HMCharacteristicMetadata? { get }

Discussion

You can typically infer a lot about a characteristic’s value from its characteristicType, 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 HMCharacteristicMetadata class.

See Also

Managing characteristic presentation