Skip To Content ArcGIS for Developers Sign In Dashboard

CustomLocationDataSource QML Type

A location data source object that allows you to supply a custom implementation. More...

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

AbstractLocationDataSource

Properties

Signals

Methods

Detailed Description

To use this type, create a CustomLocationDataSource and implement the startCallback and stopCallback in JavaScript.

Property Documentation

startCallback : var

The callback function that is called when a request to AbstractLocationDataSource::start() the data source is recieved.

At the end of the JavaScript callback, call AbstractLocationDataSource::onStartCompleted() with an optional error message.

For example, an implementation using PositionSource and Compass would call:

positionSource.start();
compass.start();

onStartCompleted();

stopCallback : var

The callback function that is called when a request to AbstractLocationDataSource::stop() the data source is recieved.

At the end of the JavaScript callback, call AbstractLocationDataSource::onStopCompleted().

For example, an implementation using PositionSource and Compass would call:

positionSource.stop();
compass.start();

onStopCompleted();

Signal Documentation

void startCallbackChanged()

Signal emitted when startCallback changes.


void stopCallbackChanged()

Signal emitted when stopCallback changes.


Method Documentation

void onStart()

Reacts to AbstractLocationDataSource::start() requests by starting the DefaultLocationDataSource::positionInfoSource and Compass.

Note: You should not call this method directly - use AbstractLocationDataSource::start() instead.


void onStop()

Reacts to AbstractLocationDataSource::stop() requests by stoping the DefaultLocationDataSource::positionInfoSource and Compass.

Note: You should not call this method directly - use AbstractLocationDataSource::stop() instead.



Feedback on this topic?