簡體   English   中英

Palm Pre儀表板通知

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM