Edit

Share via


HKWorkoutRouteBuilder.InsertRouteDataAsync(CLLocation[]) Method

Definition

Adds the specified route data to the route and returns a task that contains the success status and any error that occurred.

public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> InsertRouteDataAsync (CoreLocation.CLLocation[] routeData);
abstract member InsertRouteDataAsync : CoreLocation.CLLocation[] -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.InsertRouteDataAsync : CoreLocation.CLLocation[] -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

routeData
CLLocation[]

The route data to add.

Returns

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

Applies to