Class LocationDataSource
A base class for location information.
The datasource can be used with the LocationDisplay and displayed on a map
using the MapView's LocationDisplay property.
Inheritance
Namespace: Esri.ArcGISRuntime.Location
Assembly: Esri.ArcGISRuntime.dll
Syntax
public abstract class LocationDataSourceConstructors
| Name | Description | 
|---|---|
| LocationDataSource() | Initializes a new instance of the LocationDataSource class. | 
Properties
| Name | Description | 
|---|---|
| Error | Gets an Exception that describes a problem encountered while starting or running the LocationDataSource. | 
| Status | Gets the current status of the location datasource. | 
Methods
| Name | Description | 
|---|---|
| CreateDefault() | Creates a default location datasource using the system location. | 
| OnStartAsync() | Called when location tracking has started | 
| OnStopAsync() | Called when location tracking has stopped | 
| StartAsync() | Starts location tracking | 
| StopAsync() | Stops location tracking | 
| UpdateHeading(Double) | Updates the current heading | 
| UpdateLocation(Location) | Updates the current location | 
Events
| Name | Description | 
|---|---|
| ErrorChanged | Indicates that the Error property has changed. | 
| HeadingChanged | Raised when the compass heading has changed. | 
| LocationChanged | Raised when the location data source has a new location. | 
| StatusChanged | Raised when the data source status has changed. | 
See Also
Applies to
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 | 
| .NET 6.0 | 100.13 - 100.15 | 
| .NET 6.0 Windows | 100.13 - 100.15 | 
| .NET Framework | 100.0 - 100.15 | 
| .NET 5 | 100.10 - 100.12 | 
| .NET Core 3.1 | 100.7 - 100.12 | 
| Xamarin.Android | 100.0 - 100.15 | 
| Xamarin.iOS | 100.0 - 100.15 | 
| UWP | 100.0 - 100.15 |