Global Variable

HKMetadataKeyExternalUUID

A unique identifier for an HKObject that is set by its source.

Declaration

NSString *const HKMetadataKeyExternalUUID;

Discussion

This key takes a string value. This value is independent of the UUID assigned to the object by the HealthKit store. You can assign your own UUID to any HealthKit objects you create. Use these IDs to uniquely identify objects in your application. You typically use the UUID from the corresponding data entry on your server. This lets you create multiple copies of that data across multiple devices. Each copy shares the same external UUID.

See Also

General Keys

HKMetadataKeyTimeZone

The user’s time zone when the HealthKit object was created.

HKMetadataKeyWasUserEntered

A key that indicates whether the sample was entered by the user.