Warning Older Docs! - You are viewing documentation for a previous released version of RhoMobile Suite.

Timer API

Lets the device use a timer.

start

Start the timer and call the callback when the timer has run.

Rho::Timer.start(interval_milliseconds, callback_url, callback_data)

Refer to timer in device capabilities for an example.

interval_millisecond Duration of timer in milliseconds.
callback_url callback to call at end of timer duration.
callback_data data for callback.

stop

Stop the timer by callback.

Rho::Timer.stop(callback_url)
callback_url the callback_url for this timer; stopped by this method.
Back to Top