Method EnableReroutingAsync
EnableReroutingAsync(ReroutingParameters, CancellationToken)
Enables automatic rerouting when the tracker detects an off-route status.
Declaration
public Task EnableReroutingAsync(ReroutingParameters parameters, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ReroutingParameters | parameters | A ReroutingParameters object that allows customizing background rerouting. |
| CancellationToken | cancellationToken | Optional token that may be used to cancel the async enabling operation. |
Returns
| Type | Description |
|---|---|
| Task | A Task with no return value. |
Remarks
Re-routing occurs only when the current location is off-route while on or near the transportation network edges. For example, if an off-route state is detected when the tracked location is in a parking lot (away from any transportation network edges), re-routing will not occur. It will occur only once a subsequent tracked location is on or near the transportation network edges.
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.11 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.11 - 200.8 |
| Xamarin.Android | 100.11 - 100.14 |
| Xamarin.iOS | 100.11 - 100.15 |
| UWP | 100.11 - 200.8 |