A location data source object that allows you to supply a custom implementation. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.8 |
Inherits: |
Properties
- startCallback : var
- stopCallback : var
Signals
Methods
Detailed Description
To use this type, create a CustomLocationDataSource and implement the startCallback and stopCallback in JavaScript.
Property Documentation
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();
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
Signal emitted when startCallback changes.
Note: The corresponding handler is onStartCallbackChanged
.
Signal emitted when stopCallback changes.
Note: The corresponding handler is onStopCallbackChanged
.
Method Documentation
Reacts to AbstractLocationDataSource::start() requests by starting the DefaultLocationDataSource::positionInfoSource and Compass.
Note: You should not call this method directly - use AbstractLocationDataSource::start() instead.
Reacts to AbstractLocationDataSource::stop() requests by stoping the DefaultLocationDataSource::positionInfoSource and Compass.
Note: You should not call this method directly - use AbstractLocationDataSource::stop() instead.