Protocol

HKWorkoutSessionDelegate

The HKWorkoutSessionDelegate protocol defines an interface for receiving notifications about errors and changes in the workout session’s state. All the methods are required. HealthKit calls these methods on an anonymous serial background queue.

Topics

Tracking Workout Sessions

func workoutSession(HKWorkoutSession, didFailWithError: Error)

Tells the delegate that the session has failed with an error.

Required.

func workoutSession(HKWorkoutSession, didGenerate: HKWorkoutEvent)

Tells the delegate that the system has generated a workout event.

Relationships

Inherits From