[英]Palm Pre Dashboard notification
如何在Palm-Pre應用程序中獲取儀表板通知?
儀表板通知只是應用程序中的另一個視圖。 Mojo SDK文檔中包含儀表板面板, 網址為http://developer.palm.com/index.php?option=com_content&view=article&id=1632 。
調用this.notify()並聲明notify()如下
YourAssistant.prototype.notify = function(custom,event) {
console.log("################# NOTIFY ############")
var target = custom;
var appController = Mojo.Controller.getAppController();
this.controller.commitChanges();
var bannerParams = {
soundClass: '',
soundFile: '',
icon: '',
messageText: 'hahaha hahaha'
}
appController.showBanner(bannerParams, {banner: this.message});
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.