资源说明:Add a overlay to your ios statusbar for notifications
# statusbaroverlay Module ## Description An overlay to the status bar for ios to display messages much like the one on twitter ## Accessing the statusbaroverlay Module To access this module from JavaScript, you would do the following: var statusbaroverlay = require("mattapp.statusbar"); The statusbaroverlay variable is a reference to the Module object. ## Usage var statusbaroverlay = require('mattapp.statusbar'); //displays a message in the status bar, that is dismissed when tapped statusbaroverlay.postMessage("Posting to Twitter"); //you can also set a timeout to auto hide the message //statusbaroverlay.postMessage("Posting to Twitter", 3.0); //displays a message in the status bar with an activity indicator on the left side, that is dismissed when tapped statusbaroverlay.postMessageInProgress("Posting to Twitter"); //you can also set a timeout to auto hide the message //statusbaroverlay.postMessageInProgress("Posting to Twitter", 3.0); //displays a message in the status bar with a check on the left side, that is dismissed after a timeout statusbaroverlay.postFinishMessage("Message was posted to Twitter", 2.0); //displays a message in the status bar with an X the left side, that is dismissed after a timeout statusbaroverlay.postErrorMessage("Error posting to Twitter", 2.0); //hide the statusbaroverlay but keep its current message displayed statusbaroverlay.hide(); //show the statusbaroverlay if any messages were hidden statusbaroverlay.show(); //hide and clear the statusbar statusbaroverlay.stop(); ## Author Module created by Matt Apperson, based on the open source work of Matthias Tretter
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。