mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 16:38:08 -05:00
15 lines
518 B
JavaScript
Executable File
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);
|