workoutSession(_:didBeginActivityWith:date:)
Tells the delegate that a new workout session began.
Declaration
optional func workoutSession(_ workoutSession: HKWorkoutSession, didBeginActivityWith workoutConfiguration: HKWorkoutConfiguration, date: Date)Parameters
- workoutSession:
The workout session that receives the new activity.
- workoutConfiguration:
The workout configuration object for the new activity.
- date:
The activity’s start date and time.