Sha256: 975ac3b40445d1fc5993802f2559648e493097ae745499199fa9113fd0d1d8cd
Contents?: true
Size: 715 Bytes
Versions: 33
Compression:
Stored size: 715 Bytes
Contents
# Timer API - Use a Timer The [Timer Class API](http://docs.rhomobile.com/rhodes/device-caps#timer) lets the device use a timer. ## Timer.start(interval_milliseconds, callback_url, callback_data) Start the timer and call the callback when the timer has run. ### Returns None. ### Parameters interval_milliseconds - Duration of timer in milliseconds. callback_url - callback to call at end of timer duration. callback_data - data for callback. ### Example :::ruby Rho::Timer.start(5000, (url_for :action => :timer_callback), "test") ## Timer.stop(callback_url) Stop the timer by callback. ### Returns None. ### Parameters callback_url - the callback_url for this timer; stopped by this method.
Version data entries
33 entries across 33 versions & 1 rubygems