Palm Pre Dashboard通知

时间:2009-08-01 06:55:14

标签: webos palm-pre mojo-sdk

如何在Palm-Pre应用程序中获取仪表板通知?

2 个答案:

答案 0 :(得分:4)

仪表板通知只是应用程序中的另一个视图。仪表板面板包含在http://developer.palm.com/index.php?option=com_content&view=article&id=1632的Mojo SDK文档中。

答案 1 :(得分:0)

调用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});
}