HKActivity object contains a summary of the user’s activity for a given day.
- iOS 9.3+
- watchOS 2.2+
You can read
HKActivity objects from the HealthKit store using an
HKActivity object. Unlike the
HKActivity instances are mutable, but changes made to the object’s properties have no affect on the values in the HealthKit store.
You can instantiate your own
HKActivity objects (if needed), but you cannot save
HKActivity objects to the store.