Instance Property

source

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

Declaration

@property(readonly, strong) HKSource *source;

Discussion

The source property is only available on objects you have retrieved from the HealthKit store. When you create a new object, the source is set to nil. The system automatically sets the source property when you save the object to the HealthKit store. The source is then available the next time the object is retrieved from the store.

See Also

Accessing Properties

UUID

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

metadata

The metadata for this HealthKit object.

device

The device that generated the data for this object.

sourceRevision

The app or device that created this object.