* @description Shows or hides the device status bar (in Cordova). Requires `cordova plugin add org.apache.cordova.statusbar`
* @param {boolean} shouldShow Whether or not to show the status bar.
*/
showStatusBar:function(val){
// Only useful when run within cordova
self._showStatusBar=val
self.ready(function(){
// run this only when or if the platform (cordova) is ready
requestAnimationFrame(function(){
if(self._showStatusBar){
// they do not want it to be full screen
window.StatusBar&&window.StatusBar.show()
document.body.classList.remove('status-bar-hide')
}else{
// it should be full screen
window.StatusBar&&window.StatusBar.hide()
document.body.classList.add('status-bar-hide')
}
})
})
},
/**
* @ngdoc method
* @name vum.Platform#fullScreen
* @description
* Sets whether the app is fullscreen or not (in Cordova).
* @param {boolean=} showFullScreen Whether or not to set the app to fullscreen. Defaults to true. Requires `cordova plugin add org.apache.cordova.statusbar`
* @param {boolean=} showStatusBar Whether or not to show the device's status bar. Defaults to false.