【发布时间】:2014-03-17 10:21:12
【问题描述】:
我正在使用tideSDK创建桌面应用。
我想显示某些事件的系统通知。下面的代码运行良好。
//Create a callback function for the notification
var doSomething = function() {
//Do something!
}
//Creating a notification and displaying it.
var notification = Ti.Notification.createNotification({
'title' : 'Notification from App',
'message' : 'Click here for updates!',
'timeout' : 10,
'callback' : doSomething,
'icon' : 'app://images/notificationIcon.png'
});
notification.show();
来自http://tidesdk.multipart.net/docs/user-dev/generated/#!/api/Ti.Notification
在doSomething 方法中,我想将tideSDK 应用程序窗口带到顶层。
我试过Ti.UI.currentWindow.focus();
【问题讨论】:
标签: windows desktop-application tidesdk