Class SimulatedLocationDataSource
A location data source that provides simulated device locations for testing.
Namespace: Esri.ArcGISRuntime.Location
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class SimulatedLocationDataSource : LocationDataSourceRemarks
Use this data source to simulate location updates for a device. It uses a collection of Location objects that are sequentially passed to UpdateLocation(Location). The location collection can be derived from vertices in a provided Polyline, generated evenly along a polyline based on a travel velocity, or assigned to the collection directly.
Constructors
| Name | Description | 
|---|---|
| SimulatedLocationDataSource() | Initializes a new instance of the SimulatedLocationDataSource class. | 
Properties
| Name | Description | 
|---|---|
| CurrentLocationIndex | Gets or sets the index of the item in the Locations collection that provides the current location. | 
| IterationRate | Gets or sets the rate over which the Locations collection is iterated. | 
| Locations | Gets or sets a collection of Locations that are iterated sequentially. | 
Methods
| Name | Description | 
|---|---|
| OnStartAsync() | Called when location tracking has started | 
| OnStopAsync() | Called when location tracking has stopped | 
| SetLocationsWithPolyline(Polyline) | Creates a collection of locations using vertices from an input Polyline. | 
| SetLocationsWithPolyline(Polyline, SimulationParameters) | Creates a collection of locations along an input Polyline based on simulation parameters. | 
Applies to
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.8 - 100.15 | 
| .NET 6.0 | 100.13 - 100.15 | 
| .NET 6.0 Windows | 100.13 - 100.15 | 
| .NET Framework | 100.8 - 100.15 | 
| .NET 5 | 100.10 - 100.12 | 
| .NET Core 3.1 | 100.8 - 100.12 | 
| Xamarin.Android | 100.8 - 100.15 | 
| Xamarin.iOS | 100.8 - 100.15 | 
| UWP | 100.8 - 100.15 |