API Docs for: 1.4.0
Show:

Kiwi.Time.TimerEvent Class

Module: Time
Parent Module: Kiwi

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

(
  • type
  • callback
  • context
)
Kiwi.Time.TimerEvent

Parameters:

  • type Number

    The type of TimerEvent that this is.

  • callback Any

    The method that is to be executed when the event occurs.

  • context Any

    The context that the callback is to be called in.

Returns:

Kiwi.Time.TimerEvent:

This Object.

Item Index

Methods

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