;

AbstractLocationDataSource QML Type

A location data source object. More...

Import Statement: import Esri.ArcGISRuntime 100.13
Since: Esri.ArcGISRuntime 100.8
Inherits:

Object

Inherited By:

CustomLocationDataSource, DefaultLocationDataSource, IndoorsLocationDataSource, NmeaLocationDataSource, RouteTrackerLocationDataSource, and SimulatedLocationDataSource

Properties

Signals

Methods

Detailed Description

This type provides an interface for updating a location - for example, used by the LocationDisplay.

AbstractLocationDataSource is a class that 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:

Property Documentation

location : Location

Current location of this data source (read-only).

This property was introduced in Esri.ArcGISRuntime 100.10.


started : bool

Whether this data source has been started (true) or not (false) (read-only).


Signal Documentation

headingChanged()

Signal emitted when heading of the data source changes.

Note: The corresponding handler is onHeadingChanged.


locationChanged()

Signal emitted when location of the data source changes.

Note: The corresponding handler is onLocationChanged.


startedChanged()

Signal emitted when the started property of the data source changes.

Note: The corresponding handler is onStartedChanged.


statusChanged()

Signal emitted when the status of the data source changes.

Note: The corresponding handler is onStatusChanged.

See also started.


Method Documentation

void onStartCompleted(String error)

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.

void onStopCompleted()

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.


void start()

Starts the location data source.


void stop()

Stops the location data source.


void updateHeading(double heading)

Updates the heading.

  • heading - a heading in degrees, clockwise from North.

void updateLocation(Location location)

Update the location position.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.