Status Bar

Contents

Manage the appearance of the native status bar.

https://github.com/apache/cordova-plugin-statusbar

Ionic 状态栏 Status Bar插件的安装(Installation)

ionic cordova plugin add cordova-plugin-statusbar npm install @ionic-native/status-bar

Ionic 状态栏 Status Bar插件支持的平台(Supported Platforms)

  • Android
  • iOS
  • Windows

Ionic 状态栏 Status Bar插件的用法(Usage)

import { StatusBar } from '@ionic-native/status-bar';

constructor(private statusBar: StatusBar) { }

...

// let status bar overlay webview
this.statusBar.overlaysWebView(true);

// set status bar to white
this.statusBar.backgroundColorByHexString('#ffffff');