Show / Hide Table of Contents

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(CancellationToken))
Parameters
Type Name Description
ReroutingParameters parameters

A ReroutingParameters object that allows customizing background rerouting.

System.Threading.CancellationToken cancellationToken

Optional token that may be used to cancel the async enabling operation.

Returns
Type Description
System.Threading.Tasks.Task

The System.Threading.Tasks.Task representing the asynchronous operation to enable re-routing.

Remarks

Re-routing only occurs when the current location is off-route, but on or near the transportation network edges. For example if an off-route state is detected but the tracked location is in a parking lot, away from any transportation network edges, re-routing will not occur, and will occur only once a subsequent tracked location is on or near the transportation network edges.

See Also
SupportsRerouting
DisableRerouting()

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.11 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.11 - 200.7
Xamarin.Android100.11 - 100.14
Xamarin.iOS100.11 - 100.15
UWP100.11 - 200.7
In This Article
Back to top Copyright © 2022 Esri.