A session that tracks the user’s workout on Apple Watch.
- watchOS 2.0+
The session finetunes Apple Watch’s sensors for the specified activity. All workout sessions generate high-frequency heart rate samples; however, an outdoor cycling activity generates accurate location data, while an indoor cycling activity does not.
Apple Watch runs one workout session at a time. If a second workout starts while your workout is running, your
HKWorkout object receives an
HKError error, and your session ends.