AppEventHandler Class
This class represents the
Event
and
Timer
nodes found under
Events
in the Application Builder. An
AppEventHandler
object can be either an
Event
or a
Timer
.
The following methods are available for an
AppEventHandler
object:
Name
Syntax
Description
getName
String getName()
Returns the name of this event handler.
getType
String getType()
Returns the event handler type name:
Event
or
Timer
.
An
AppEventHandler
object has the following properties:
Property
Value
Default
Description
delay
double
1
The interval of a
Timer
in seconds.
enabled
See
General Properties
.
Example code
The following code sets the interval of a
Timer
to 1 hour:
app.event("timer1").set("delay","1[h]");