;

LocationGeotriggerFeed Class

  • LocationGeotriggerFeed
  • class Esri::ArcGISRuntime::LocationGeotriggerFeed

    Feed data for a Geotrigger created from a AbstractLocationDataSource. More...

    Header: #include <LocationGeotriggerFeed>
    Since: Esri::ArcGISRuntime 100.12
    Inherits: Esri::ArcGISRuntime::GeotriggerFeed

    This class was introduced in Esri::ArcGISRuntime 100.12.

    Public Functions

    LocationGeotriggerFeed(Esri::ArcGISRuntime::AbstractLocationDataSource *locationDataSource, QObject *parent = nullptr)
    LocationGeotriggerFeed(QObject *parent = nullptr)
    virtual ~LocationGeotriggerFeed() override
    Esri::ArcGISRuntime::AbstractLocationDataSource *locationDataSource() const
    void setLocationDataSource(Esri::ArcGISRuntime::AbstractLocationDataSource *locationDataSource)

    Detailed Description

    The GeotriggerFeed is the dynamic component of a Geotrigger. Typically, it is the data that moves around and triggers the condition. For example, if the condition is "Notify me when my position comes within 50 meters of one of my areas of interest", the feed data is "my position".

    To receive location updates, the AbstractLocationDataSource must be started. If you call GeotriggerMonitor::stop, the underlying AbstractLocationDataSource will not be stopped for you. For example, it may continue to receive GPS readings.

    Member Function Documentation

    LocationGeotriggerFeed::LocationGeotriggerFeed(Esri::ArcGISRuntime::AbstractLocationDataSource *locationDataSource, QObject *parent = nullptr)

    Constructs a LocationGeotriggerFeed with an AbstractLocationDataSource.

    • locationDataSource - A location data source that provides updates for the device location.
    • parent - The optional parent QObject.

    LocationGeotriggerFeed::LocationGeotriggerFeed(QObject *parent = nullptr)

    Constructs a default LocationGeotriggerFeed.

    • parent - The optional parent QObject.

    [override virtual] LocationGeotriggerFeed::~LocationGeotriggerFeed()

    Destructor.

    Esri::ArcGISRuntime::AbstractLocationDataSource *LocationGeotriggerFeed::locationDataSource() const

    Returns the location data source which will provide updates for the device location.

    To receive location updates, the AbstractLocationDataSource must be started. If you call GeotriggerMonitor::stop, the underlying AbstractLocationDataSource is not stopped for you. In other words, it may continue to receive GPS readings.

    See also setLocationDataSource().

    void LocationGeotriggerFeed::setLocationDataSource(Esri::ArcGISRuntime::AbstractLocationDataSource *locationDataSource)

    Sets the locationDataSource to locationDataSource.

    See also locationDataSource.

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