You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Drew Walters (Updated) (JIRA)" <ji...@apache.org> on 2012/03/12 21:40:38 UTC
[jira] [Updated] (CB-313) Enhanced Notification API missing
[ 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