AbstractLocationDataSource QML Type
A location data source object. More...
Import Statement: | import Esri.ArcGISRuntime 100.9 |
Since: | Esri.ArcGISRuntime 100.8 |
Inherits: | |
Inherited By: | CustomLocationDataSource, DefaultLocationDataSource, RouteTrackerLocationDataSource, and SimulatedLocationDataSource |
Properties
- started : bool
Signals
Methods
- void onStartCompleted(error)
- void onStopCompleted()
- void start()
- void stop()
- void updateHeading(heading)
- void updateLocation(location)
Detailed Description
This type provides an interface for updating a location - for example, used by the LocationDisplay.
AbstractLocationDataSource is a class which can be customized to provide your own data source. To do this, you would create a CustomLocationDataSource and implement the start and stop callbacks in JavaScript.
The DefaultLocationDataSource provides a default implementation designed to work with the QML types:
- PositionSource
- Compass
Property Documentation
Signal Documentation
Signal emitted when heading
of the data source changes.
Note: The corresponding handler is onHeadingChanged
.
Signal emitted when location
of the data source changes.
Note: The corresponding handler is onLocationChanged
.
Signal emitted when the started property of the data source changes.
Note: The corresponding handler is onStartedChanged
.
Signal emitted when the status
of the data source changes.
Note: The corresponding handler is onStatusChanged
.
See also started.
Method Documentation
Indicates that the start operation of the AbstractLocationDataSource has been completed.
If you are implementing a CustomLocationDataSource, this method must be called at the end of the CustomLocationDataSource::startCallback.
- error - If the data source could not be started, this string supplies an error message.
Indicates that the stop operation of the AbstractLocationDataSource has been completed.
If you are implementing a CustomLocationDataSource, this method must be called at the end of the CustomLocationDataSource::stopCallback.
Updates the heading.
- heading - a heading in degrees, clockwise from North.
Update the location position.
- location - The Location.