updateActivity(uuid:end:completion:)
Sets the end date for a workout activity that you’ve already added to the workout builder.
Declaration
func updateActivity(uuid UUID: UUID, end endDate: Date, completion: @escaping @Sendable (Bool, (any Error)?) -> Void)func updateActivity(uuid UUID: UUID, end endDate: Date) async throwsParameters
- UUID:
The workout activity’s universally unique identifier (UUID).
- endDate:
The end date and time for the workout activity.
- completion:
A callback handler that the system calls after updating the workout activity. The system calls the callback handler on an anonymous background queue.
The callback handler takes the following parameters:
Discussion
Calling this method after calling finishWorkout(completion:) fails with an error.