Share via


HKWorkoutRouteBuilder.FinishRouteAsync Method

Definition

Overloads

Name Description
FinishRouteAsync(HKWorkout, NSDictionary)

Finalizes the route and saves it to the workout, returning a task that contains the route and any errors that occurred.

FinishRouteAsync(HKWorkout, HKMetadata)

Finalizes the route and saves it to the workout, returning a task that contains the route.

FinishRouteAsync(HKWorkout, NSDictionary)

Finalizes the route and saves it to the workout, returning a task that contains the route and any errors that occurred.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected virtual System.Threading.Tasks.Task<HealthKit.HKWorkoutRoute> FinishRouteAsync(HealthKit.HKWorkout workout, Foundation.NSDictionary? metadata);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member FinishRouteAsync : HealthKit.HKWorkout * Foundation.NSDictionary -> System.Threading.Tasks.Task<HealthKit.HKWorkoutRoute>
override this.FinishRouteAsync : HealthKit.HKWorkout * Foundation.NSDictionary -> System.Threading.Tasks.Task<HealthKit.HKWorkoutRoute>

Parameters

workout
HKWorkout

The workout to which to add the route.

metadata
NSDictionary

The metadata for the route.

Returns

A task that represents the asynchronous FinishRoute operation. The value of the TResult parameter is of type System.Action<HealthKit.HKWorkoutRoute,Foundation.NSError>.

Attributes

Remarks

The FinishRouteAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to

FinishRouteAsync(HKWorkout, HKMetadata)

Finalizes the route and saves it to the workout, returning a task that contains the route.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public System.Threading.Tasks.Task<HealthKit.HKWorkoutRoute> FinishRouteAsync(HealthKit.HKWorkout workout, HealthKit.HKMetadata metadata);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.FinishRouteAsync : HealthKit.HKWorkout * HealthKit.HKMetadata -> System.Threading.Tasks.Task<HealthKit.HKWorkoutRoute>

Parameters

workout
HKWorkout

The workout to which to add the route.

metadata
HKMetadata

The metadata for the route.

Returns

Attributes

Applies to