GeotriggerListModel QML Type

A list of Geotrigger conditions. More...

Import Statement: import Esri.ArcGISRuntime 100.14
Since: Esri.ArcGISRuntime 100.14

Properties

Signals

Methods

  • void append(Geotrigger geotrigger)
  • void clear()
  • bool contains(Geotrigger geotrigger)
  • error forEach(callback)
  • Analysis get(int index)
  • int indexOf(Geotrigger geotrigger)
  • void insert(int index, Geotrigger geotrigger)
  • void move(int from, int to)
  • void remove(int index, int count)
  • void removeOne(Geotrigger geotrigger)

Detailed Description

The model returns data for the following roles:

RoleTypeDescription
geotriggerNamestringThe geotrigger's name.
geotriggerIdstringThe geotrigger's ID.
geotriggerTypeEnums.GeotriggerTypeThe type of geotrigger.
geotriggerRequestedActionslist<string>The list of requested actions for the geotrigger.

Property Documentation

error : Error

Returns the last error that occurred on the model (read-only).


rowCount : int

Returns the number of geotriggers in the model (read-only).


Signal Documentation

countChanged()

Emitted when the rowCount property changes.

Note: The corresponding handler is onCountChanged.


errorChanged()

Emitted when the error property changes, which can indicate that an error occurred.

Note: The corresponding handler is onErrorChanged.


geotriggerAdded()

Emitted when a new element is added to the list model.

Note: The corresponding handler is onGeotriggerAdded.


geotriggerRemoved()

Emitted when a element is removed from the list model.

Note: The corresponding handler is onGeotriggerRemoved.


Method Documentation

void append(Geotrigger geotrigger)

Appends a geotrigger to the geotrigger list model.


void clear()

Removes all geotriggers from the list model.


bool contains(Geotrigger geotrigger)

Returns true if the list model contains the specified geotrigger.


error forEach(callback)

Receives a callback function to execute for each geotrigger in the model.

The callback function can take from 0 to 3 optional arguments, in order:

  • element Current geotrigger.
  • index Current index in array.
  • array Reference to GeotriggerListModel.

Returns undefined if no error occurred, and an error message otherwise.

const error = geotriggerListModel.forEach(function(element, index, array) {
    ...
});
if (error) {
    console.error(error.message);
}

Analysis get(int index)

Returns the Geotrigger at the specified index.


int indexOf(Geotrigger geotrigger)

Returns the index of the geotrigger specified.


void insert(int index, Geotrigger geotrigger)

Inserts a geotrigger at a specified index in the list.


void move(int from, int to)

Moves one geotrigger from an index in the list model to a different index.


void remove(int index, int count = 1)

Removes one or more objects starting at the specified index.

  • index Index of first object to remove.
  • count Number of objects to remove. This parameter defaults to 1.

No analysis is removed if the specified index is out-of-range.


void removeOne(Geotrigger geotrigger)

Removes the specified geotrigger (geotrigger) from the list model.


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