EventStates Type

A collection of EventState objects.

It is possible to retrieve a specific element by specifying its index in square brackets and obtain the number of elements in the collection with the method length. It is also possible to obtain the corresponding array with the method toArray.

Example of Use

var eventFilter = new EventFilter();

eventFilter.state = [5, 6];

var eventStates = eventFilter.state;

var eventState = eventStates[0];

var count = eventStates.length;

var eventStatesArray = eventStates.toArray();

 

In the above example:

  • eventState is an EventState object
  • eventStates is an EventStates object
  • eventStatesArray is an array of EventState objects, on which it is possible to invoke all the methods that operate on arrays in JavaScript.