Files
phonegap-plugins/iOS/StatusBarNotifier/StatusBarNotifier.js
cevatkerim 6a9c53411b Update iOS/StatusBarNotifier/StatusBarNotifier.js
Corrected the method name and the plugin name.
2012-10-14 00:42:01 -05:00

15 lines
518 B
JavaScript
Executable File

;(function(cordova) {
function StatusBarNotifier() {}
StatusBarNotifier.prototype.show = function(text, timeOnScreen, callback) {
if (typeof timeOnScreen === "function") callback = timeOnScreen
if (!callback) callback = function() {}
cordova.exec(callback, callback, "StatusBarNotifier", "show", [{text: text, timeOnScreen: timeOnScreen}])
}
if (!window.plugins) window.plugins = {}
window.plugins.StatusBarNotifier = new StatusBarNotifier()
})(window.cordova || window.Cordova || window.PhoneGap);