HKSourceRevision
An object indicating the source of a HealthKit sample.
Declaration
class HKSourceRevisionMentioned in
Overview
The HKSourceRevision class acts as a wrapper for the HKSource class, adding information about the source’s version, operating system, and product type.
Source revision objects are immutable: you set the source revision’s properties when you create the object, and they cannot change.
When an HKObject instance is created, its sourceRevision property is set to nil. When the object is saved to the HealthKit store, HealthKit assigns a new source revision to the object’s sourceRevision property. The source revision can be accessed only on objects retrieved from the HealthKit store.
Subclassing Source Revisions
Like many HealthKit classes, the HKSourceRevision class is not extensible and should not be subclassed.