HKWorkoutSessionDelegate
The session delegate protocol that defines an interface for receiving notifications about errors and changes in the workout session’s state.
Declaration
protocol HKWorkoutSessionDelegate : NSObjectProtocolMentioned in
Overview
All the methods are required. HealthKit calls these methods on an anonymous serial background queue.
Topics
Tracking workout sessions
workoutSession(_:didChangeTo:from:date:)workoutSession(_:didFailWithError:)workoutSession(_:didGenerate:)workoutSession(_:didBeginActivityWith:date:)workoutSession(_:didEndActivityWith:date:)