workoutSession(_:didEndActivityWith:date:)
Tells the session that the current workout activity ended.
Declaration
optional func workoutSession(_ workoutSession: HKWorkoutSession, didEndActivityWith workoutConfiguration: HKWorkoutConfiguration, date: Date)Parameters
- workoutSession:
The workout session for the activity that just ended.
- workoutConfiguration:
The workout configuration object for the activity.
- date:
The end date and time for the activity.