incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Drew Walters (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-313) Enhanced Notification API missing
Date Mon, 12 Mar 2012 20:40:38 GMT

     [ https://issues.apache.org/jira/browse/CB-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Drew Walters updated CB-313:
----------------------------

    Description: 
Android (and BlackBerry) prior to Cordova 1.5 had support for the following Notification API
which are now missing:


Notification.prototype.activityStart = function() {
    Cordova.exec(null, null, "Notification", "activityStart", ["Busy","Please wait..."]);
};


Notification.prototype.activityStop = function() {
    Cordova.exec(null, null, "Notification", "activityStop", []);
};

Notification.prototype.progressStart = function(title, message) {
    Cordova.exec(null, null, "Notification", "progressStart", [title, message]);
};

Notification.prototype.progressValue = function(value) {
    Cordova.exec(null, null, "Notification", "progressValue", [value]);
};

Notification.prototype.progressStop = function() {
    Cordova.exec(null, null, "Notification", "progressStop", []);
};

  was:
Android (and BlackBerry) prior to Cordova 1.5 had support for the following Notification API
which are now missing:

/**
 * Start spinning the activity indicator on the statusbar
 */
Notification.prototype.activityStart = function() {
    Cordova.exec(null, null, "Notification", "activityStart", ["Busy","Please wait..."]);
};

/**
 * Stop spinning the activity indicator on the statusbar, if it's currently spinning
 */
Notification.prototype.activityStop = function() {
    Cordova.exec(null, null, "Notification", "activityStop", []);
};

/**
 * Display a progress dialog with progress bar that goes from 0 to 100.
 *
 * @param {String} title        Title of the progress dialog.
 * @param {String} message      Message to display in the dialog.
 */
Notification.prototype.progressStart = function(title, message) {
    Cordova.exec(null, null, "Notification", "progressStart", [title, message]);
};

/**
 * Set the progress dialog value.
 *
 * @param {Number} value         0-100
 */
Notification.prototype.progressValue = function(value) {
    Cordova.exec(null, null, "Notification", "progressValue", [value]);
};

/**
 * Close the progress dialog.
 */
Notification.prototype.progressStop = function() {
    Cordova.exec(null, null, "Notification", "progressStop", []);
};

    
> Enhanced Notification API missing
> ---------------------------------
>
>                 Key: CB-313
>                 URL: https://issues.apache.org/jira/browse/CB-313
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 1.5.0
>            Reporter: Drew Walters
>
> Android (and BlackBerry) prior to Cordova 1.5 had support for the following Notification
API which are now missing:
> Notification.prototype.activityStart = function() {
>     Cordova.exec(null, null, "Notification", "activityStart", ["Busy","Please wait..."]);
> };
> Notification.prototype.activityStop = function() {
>     Cordova.exec(null, null, "Notification", "activityStop", []);
> };
> Notification.prototype.progressStart = function(title, message) {
>     Cordova.exec(null, null, "Notification", "progressStart", [title, message]);
> };
> Notification.prototype.progressValue = function(value) {
>     Cordova.exec(null, null, "Notification", "progressValue", [value]);
> };
> Notification.prototype.progressStop = function() {
>     Cordova.exec(null, null, "Notification", "progressStop", []);
> };

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message