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: