Edytuj

Udostępnij za pośrednictwem


HKWorkoutRouteBuilder.FinishRouteAsync Method

Definition

Overloads

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.

protected virtual System.Threading.Tasks.Task<HealthKit.HKWorkoutRoute> FinishRouteAsync (HealthKit.HKWorkout workout, Foundation.NSDictionary metadata);
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>.

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.

public System.Threading.Tasks.Task<HealthKit.HKWorkoutRoute> FinishRouteAsync (HealthKit.HKWorkout workout, HealthKit.HKMetadata metadata);
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

Applies to