An object that contains the move, exercise, and stand data for a given day.
SDKs
- iOS 9.3+
- Mac Catalyst 13.0+
- watchOS 2.2+
Framework
- Health
Kit
Declaration
@interface HKActivitySummary : NSObject
Overview
You can read HKActivity
objects from the HealthKit store using an HKActivity
object. Unlike the HKSample
subclasses, 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.
You can display an active summary in iOS using the HKActivity
class or on watchOS using the WKInterface
class.