HKSource object represents both the app and the version of the app that saved an object into the HealthKit store. This class acts as a wrapper for the
HKSource class, adding version information to the source.
- iOS 9.0+
- watchOS 2.0+
Source revision objects are immutable: You set the source revision’s properties when you create the object, and they cannot change.
HKObject instance is created, its
source property is set to
nil. When the object is saved to the HealthKit store, HealthKit assigns a new source revision to the object’s
source property. The source revision can be accessed only on objects retrieved from the HealthKit Store.
Like many HealthKit classes, the
HKSource class is not extensible and should not be subclassed.