CustomLocationDataSource QML Type

  • Esri.ArcGISRuntime
  • CustomLocationDataSource
  • A location data source object that allows you to supply a custom implementation. More...

    Import Statement: import Esri.ArcGISRuntime
    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

    startCallbackChanged()

    Signal emitted when startCallback changes.

    Note: The corresponding handler is onStartCallbackChanged.


    stopCallbackChanged()

    Signal emitted when stopCallback changes.

    Note: The corresponding handler is onStopCallbackChanged.


    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.


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