Update notification service to implement plugin class.

This commit is contained in:
Bryce Curtis
2010-09-29 11:10:08 -05:00
parent 7f7cc1db2a
commit f85f4e6b69
4 changed files with 160 additions and 54 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ Notification.prototype.blink = function(count, colour) {
* @param {Integer} mills The number of milliseconds to vibrate for.
*/
Notification.prototype.vibrate = function(mills) {
PhoneGap.execAsync(null, null, "Device", "vibrate", [mills]);
PhoneGap.execAsync(null, null, "Notification", "vibrate", [mills]);
};
/**
@@ -51,7 +51,7 @@ Notification.prototype.vibrate = function(mills) {
* @param {Integer} count The number of beeps.
*/
Notification.prototype.beep = function(count) {
PhoneGap.execAsync(null, null, "Device", "beep", [count]);
PhoneGap.execAsync(null, null, "Notification", "beep", [count]);
};
// TODO: of course on Blackberry and Android there notifications in the UI as well