StatusBarPlugin

getInfo

getInfo(): Promise<StatusBarInfoResult>
Get info about the current state of the status bar
Returns: Promise<StatusBarInfoResult>

hide

hide(): Promise<void>
Hide the status bar
Returns: Promise<void>

setBackgroundColor

setBackgroundColor(options: StatusBarBackgroundColorOptions): Promise<void>
Set the background color of the status bar
options StatusBarBackgroundColorOptions
Returns: Promise<void>

setStyle

setStyle(options: StatusBarStyleOptions): Promise<void>
Set the current style of the status bar
options StatusBarStyleOptions
Returns: Promise<void>

show

show(): Promise<void>
Show the status bar
Returns: Promise<void>

addListener

addListener(eventName: string, listenerFunc: Function): PluginListenerHandle
eventName string
listenerFunc Function
Returns: PluginListenerHandle

Interfaces Used

StatusBarInfoResult

interface StatusBarInfoResult {
color ?: string;
style : StatusBarStyle;
visible : boolean;
}

StatusBarBackgroundColorOptions

interface StatusBarBackgroundColorOptions {
color : string;
}

StatusBarStyleOptions

interface StatusBarStyleOptions {
style : StatusBarStyle;
}

StatusBarStyle

enum StatusBarStyle {
// Light text for dark backgrounds.
Dark: "DARK"
// Dark text for light backgrounds.
Light: "LIGHT"
}