API
Class

cordova-plugin-statusbar (cordova-plugin-statusbar)

使用范围:Native

Contents

class cordova-plugin-statusbar (cordova-plugin-statusbar)

状态栏插件

Constructor Top

  cordova-plugin-statusbar ()

Static Methods Top

void backgroundColorByName (string colorname)
void hide ()
void overlaysWebView (boolean doOverlay)
void show ()
void styleBlackOpaque ()
void styleBlackTranslucent ()
void styleDefault ()
void styleLightContent ()

Constructor details Top

public cordova-plugin-statusbar ()

状态栏插件

Static Methods Detail Top

static public void backgroundColorByName (string colorname)

在状态栏不重叠的情况下设置状态栏背景颜色

Parameters

string colorname

设置的颜色,取值范围:black, darkGray, lightGray, white, gray, red, green, blue, cyan, yellow, magenta, orange, purple, brown

Return Value

void

static public void hide ()

隐藏状态栏

Return Value

void

static public void overlaysWebView (boolean doOverlay)

设置状态栏是否重叠,在IOS7中,设为false,状态栏的风格接近于IOS6

Parameters

boolean doOverlay

Return Value

void

static public void show ()

显示状态栏

Return Value

void

static public void styleBlackOpaque ()

使用黑色不透明状态栏

Return Value

void

static public void styleBlackTranslucent ()

使用黑色半透明状态栏

Return Value

void

static public void styleDefault ()

使用默认的状态栏

Return Value

void

static public void styleLightContent ()

使用白色字样式状态栏

Return Value

void