workoutSession(_:didGenerate:)
Tells the delegate that the system generated a workout event.
Declaration
optional func workoutSession(_ workoutSession: HKWorkoutSession, didGenerate event: HKWorkoutEvent)Parameters
- workoutSession:
The workout session associated with the event.
- event:
The event that the system generated. For a list of possible values, see Hkworkoutevent.
Mentioned in
Discussion
You can save the generated events and use them when creating a HKWorkout object for the session.