Instance Property

uuid

The universally unique identifier (UUID) for this HealthKit object.

Declaration

var uuid: UUID { get }

Discussion

HealthKit assigns a UUID to the object when you create it. If you want to add your own unique ID, add it to the object’s metadata using the HKMetadataKeyExternalUUID key.

See Also

Getting Properties

var metadata: [String : Any]?

The metadata for this HealthKit object.

var device: HKDevice?

The device that generated the data for this object.

var source: HKSource

A HealthKit source, representing the app or device that created this object.

Deprecated
var sourceRevision: HKSourceRevision

The app or device that created this object.