Edit

Share via


HKWorkoutRouteBuilder.FinishRoute Method

Definition

Overloads

FinishRoute(HKWorkout, NSDictionary, Action<HKWorkoutRoute,NSError>)

Finalizes the route and saves it to the workout.

FinishRoute(HKWorkout, HKMetadata, Action<HKWorkoutRoute,NSError>)

Finalizes the route and saves it to the workout.

FinishRoute(HKWorkout, NSDictionary, Action<HKWorkoutRoute,NSError>)

Finalizes the route and saves it to the workout.

[Foundation.Export("finishRouteWithWorkout:metadata:completion:")]
protected virtual void FinishRoute (HealthKit.HKWorkout workout, Foundation.NSDictionary metadata, Action<HealthKit.HKWorkoutRoute,Foundation.NSError> completion);
abstract member FinishRoute : HealthKit.HKWorkout * Foundation.NSDictionary * Action<HealthKit.HKWorkoutRoute, Foundation.NSError> -> unit
override this.FinishRoute : HealthKit.HKWorkout * Foundation.NSDictionary * Action<HealthKit.HKWorkoutRoute, Foundation.NSError> -> unit

Parameters

workout
HKWorkout

The workout to which to add the route.

metadata
NSDictionary

The metadata for the route.

completion
Action<HKWorkoutRoute,NSError>

A handler to run when the operation completes.

Attributes

Applies to

FinishRoute(HKWorkout, HKMetadata, Action<HKWorkoutRoute,NSError>)

Finalizes the route and saves it to the workout.

public void FinishRoute (HealthKit.HKWorkout workout, HealthKit.HKMetadata metadata, Action<HealthKit.HKWorkoutRoute,Foundation.NSError> completion);
member this.FinishRoute : HealthKit.HKWorkout * HealthKit.HKMetadata * Action<HealthKit.HKWorkoutRoute, Foundation.NSError> -> unit

Parameters

workout
HKWorkout

The workout to which to add the route.

metadata
HKMetadata

The metadata for the route.

completion
Action<HKWorkoutRoute,NSError>

A handler to run when the operation completes.

Applies to