Instance Method

stopActivity(with:)

Stops the workout session activity, and sets the end date.

Declaration

func stopActivity(with date: Date?)

Parameters

date

The end date for the workout session. This must be equal to or after the start date.

See Also

Managing the Workout

func prepare()

Prepares the workout session.

func startActivity(with: Date?)

Starts the workout session activity, and sets the start date.

func pause()

Pauses the workout session.

func resume()

Resumes the workout session.

func end()

Ends the workout session.