Ti.mely Native Timer Modules for Titanium
The Ti.mely project provides Titanium access to iOS and Android native timers. The native nature of these timers can be advantageous for background or long interval poling.
The usage is straightforward, you simply create a new timer object
Attach a listener to listen for the onIntervalChange event as shown below
Initialize the timer by calling the start method. This method takes the interval in milliseconds and an optional debug flag which will print timer information to your console window.
To stop the timer, simply call the stop method as shown below.
Native Consideration, ie Side Effects
Get the module
The Ti.mely source code…
View original post 55 more words