cordova-plugin-statusbar状态栏设置整理

一、Cordova StatusBar简介

1.全局对象StatusBar 提供了修改设备状态栏的方法,需要在deviceready事件之后使用。

2.iOS中接口都支持,Android支5.0以下版本持的相对较少,仅支持状态栏的显示show()和隐藏hide()。

3.这个插件可以控制显示、隐藏、设置状态栏背景色等简单操作

4、官方文档:http://cordova.apache.org/docs/en/latest/reference/cordova-plugin-statusbar/index.html

二、安装命令

cordova plugin add cordova-plugin-statusbar
三、使用操作整理

1.Android 5.0以下 支持的接口比较少show()和hide() 等

  1. StatusBar.isVisible 是否已经显示
  2. StatusBar.hide(); 隐藏状态栏
  3. StatusBar.show(); 显示状态栏
html>

你可能感兴趣的:(Apache,Cordova)