Method TrackLocationAsync
TrackLocationAsync(Location, CancellationToken)
Provides route tracking status relative to the provided location.
Declaration
public Task TrackLocationAsync(Location location, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
Location | location | A location used to evaluate status and progress along the route. |
Cancellation |
cancellationToken | Optional token that may be used to cancel the async tracking operation. |
Returns
Type | Description |
---|---|
Task | The task object representing the asynchronous operation. |
Remarks
The location generally comes from a GPS but may also be a simulated or manually
entered location. It must have valid values for X and Y coordinates, speed (in
meters per second), course (in degrees), and a timestamp. Events fired for
Route
Applies to
Platforms and versions
Target | Versions |
---|---|
UWP | 100.15 |