Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding timer in Titanium mobile application

I want to add a timer to my mobile application, which I'm developing using Titanium framework. I didn't find any related thing in documentation. Can anybody suggest a solution for this problem.

Thanx

like image 321
Ammar Avatar asked Jun 30 '26 07:06

Ammar


1 Answers

If you mean a timer for executing code later, just use javascript setTimeout or setInterval.

setTimeout(function(){
   toDoLater();
}, 1000);

difference being setInterval repeats and setTimeout executes once.

like image 139
hvgotcodes Avatar answered Jul 05 '26 23:07

hvgotcodes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!