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 : LocationDataSource
Remarks
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 - 200.8 |
| .NET | 100.13 - 200.8 |
| .NET Windows | 100.13 - 200.8 |
| .NET Android | 200.0 - 200.8 |
| .NET iOS | 200.0 - 200.8 |
| .NET Framework | 100.8 - 200.8 |
| Xamarin.Android | 100.8 - 100.15 |
| Xamarin.iOS | 100.8 - 100.15 |
| UWP | 100.8 - 200.8 |