【问题标题】:How to trigger an event when the application wakes up from the background?应用从后台唤醒时如何触发事件?
【发布时间】:2011-06-03 07:51:03
【问题描述】:

当应用在Appcelerator Titaniummobile 中从后台唤醒时如何触发事件?

【问题讨论】:

  • 如果它的javascript和浏览器是window.onfocus..不知道钛手机..
  • 谢谢,恐怕钛不同于基于浏览器的框架,谢谢

标签: javascript ios titanium appcelerator


【解决方案1】:

为“恢复的”事件添加一个事件监听器

Ti.App.addEventListener("resumed", function(e){
});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-28
    • 1970-01-01
    相关资源
    最近更新 更多