Share via


MKDirections.CalculateDirectionsAsync Method

Definition

Requests a directions calculation from Apple's servers and runs a completion handler when the request is complete.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<MapKit.MKDirectionsResponse> CalculateDirectionsAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member CalculateDirectionsAsync : unit -> System.Threading.Tasks.Task<MapKit.MKDirectionsResponse>
override this.CalculateDirectionsAsync : unit -> System.Threading.Tasks.Task<MapKit.MKDirectionsResponse>

Returns

A task that represents the asynchronous CalculateDirections operation. The value of the TResult parameter is a MKDirectionsHandler.

Attributes

Applies to