开发者

Jquery Mobile, can i create a function that emulates a tap screen

开发者 https://www.devze.com 2023-04-10 19:22 出处:网络
My Goal is to set a function that fires every 30 seconds that emulates a tap on the screen so that the scre开发者_JAVA百科en stays on. Is this at all possible, or what is the best way to enable this w

My Goal is to set a function that fires every 30 seconds that emulates a tap on the screen so that the scre开发者_JAVA百科en stays on. Is this at all possible, or what is the best way to enable this without having to program it natively in Java.

I'll be happy if i can do it via phonegap.


You can disable the Idle Timer if you're in PhoneGap, you'll need to add this to the UIApplication object.

[[UIApplication sharedApplication] setIdleTimerDisabled: YES];
0

精彩评论

暂无评论...
验证码 换一张
取 消