MKLocalSearch.StartAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| StartAsync() | |
| StartAsync(CancellationToken) |
Asynchronously starts the local search. |
StartAsync()
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<MapKit.MKLocalSearchResponse> StartAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member StartAsync : unit -> System.Threading.Tasks.Task<MapKit.MKLocalSearchResponse>
override this.StartAsync : unit -> System.Threading.Tasks.Task<MapKit.MKLocalSearchResponse>
Returns
A task that represents the asynchronous Start operation. The value of the TResult parameter is a MKLocalSearchCompletionHandler.
- Attributes
Remarks
(More documentation for this node is coming)
This can be used from a background thread.
The StartAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.
This can be used from a background thread.
Applies to
StartAsync(CancellationToken)
Asynchronously starts the local search.
public virtual System.Threading.Tasks.Task<MapKit.MKLocalSearchResponse?> StartAsync(System.Threading.CancellationToken token);
abstract member StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<MapKit.MKLocalSearchResponse>
override this.StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<MapKit.MKLocalSearchResponse>
Parameters
- token
- CancellationToken
A cancellation token that can be used to cancel the search.
Returns
A task that represents the asynchronous search operation. The result may be null if the search was cancelled.
Remarks
This can be used from a background thread.