Share via


HKWorkoutBuilder.EndCollectionAsync(NSDate) Method

Definition

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

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> EndCollectionAsync(Foundation.NSDate endDate);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.

Attributes

Applies to