Share via


HKWorkoutBuilder.FinishWorkoutAsync Method

Definition

Saves a new workout, created with the collected data, to the Health Store. Returns a handler that contains a success status and any error that occurred.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> FinishWorkoutAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member FinishWorkoutAsync : unit -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.FinishWorkoutAsync : unit -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Returns

A handler that contains a success status and any error that occurred.

Attributes

Applies to