Get Event State

<String> getState()

Returns LViS Event state.

Example

var event = LViS.getEvent();
switch (event.getState()) {
switch (state) {
case LViS.Event.STATE_UPCOMING:
// handle upcoming state
break;
case LViS.Event.STATE_ACTIVE:
// handle active state
break;
// etc..
}
}