Kiwi.Time.TimerEvent Class
A TimerEvent hooks into a Timer and is an object that is generated when you are wanting to executed a callback at a specific point in time.
Constructor
Kiwi.Time.TimerEvent
(
Kiwi.Time.TimerEvent
-
type
-
callback
-
context
Parameters:
-
type
NumberThe type of TimerEvent that this is.
-
callback
AnyThe method that is to be executed when the event occurs.
-
context
AnyThe context that the callback is to be called in.
Returns:
Kiwi.Time.TimerEvent:
This Object.
Item Index
Properties
- _callback
- _callbackContext
- TIMER_COUNT static
- TIMER_START static
- TIMER_STOP static
- type
Methods
objType
()
String
public
The type of object that this is.
Returns:
String:
"TimerEvent"
run
()
public
Fires the callback associated with this TimerEvent
Properties
_callback
Function
private
The callback to be called when this TimerEvent triggers
_callbackContext
Function
private
The context in which the callback will be fired
TIMER_COUNT
String
public
final
static
Name for the event fired when a timer repeats.
Default: 2
TIMER_START
Number
public
final
static
Name for the event fired when a timer starts.
Default: 1
TIMER_STOP
String
public
final
static
Name for the event fired when a timer stops.
Default: 3
type
Function
public
The type of TimerEvent