HKWorkoutBuilder.EndCollectionAsync(NSDate) Method

Definition

Ends the workout and returns a task that contains a success status and any error that occured.

public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> EndCollectionAsync (Foundation.NSDate endDate);
abstract member EndCollectionAsync : Foundation.NSDate -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.EndCollectionAsync : Foundation.NSDate -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

endDate
NSDate

The end time of the workout.

Returns

A task that contains a success status and any error that occured.

Applies to