0.0.8 • Published 3 years ago

capacitor-plugins-status-bar v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

capacitor-plugins-status-bar

状态栏

Install

npm install capacitor-plugins-status-bar
npx cap sync

API

setStyle(...)

setStyle(options: StyleOptions) => Promise<void>

Set the current style of the status bar.

ParamType
optionsStyleOptions

Since: 1.0.0


setBackgroundColor(...)

setBackgroundColor(options: BackgroundColorOptions) => Promise<void>

Set the background color of the status bar.

This method is only supported on Android.

ParamType
optionsBackgroundColorOptions

Since: 1.0.0


show(...)

show(options?: AnimationOptions | undefined) => Promise<void>

Show the status bar.

ParamType
optionsAnimationOptions

Since: 1.0.0


hide(...)

hide(options?: AnimationOptions | undefined) => Promise<void>

Hide the status bar.

ParamType
optionsAnimationOptions

Since: 1.0.0


getInfo()

getInfo() => Promise<StatusBarInfo>

Get info about the current state of the status bar.

Returns: Promise<StatusBarInfo>

Since: 1.0.0


setOverlaysWebView(...)

setOverlaysWebView(options: SetOverlaysWebViewOptions) => Promise<void>

Set whether or not the status bar should overlay the webview to allow usage of the space underneath it.

This method is only supported on Android.

ParamType
optionsSetOverlaysWebViewOptions

Since: 1.0.0


Interfaces

StyleOptions

PropTypeDescriptionSince
styleStyleStyle of the text of the status bar.1.0.0

BackgroundColorOptions

PropTypeDescriptionSince
colorstringA hex color to which the status bar color is set. This option is only supported on Android.1.0.0

AnimationOptions

PropTypeDescriptionSince
animationAnimationThe type of status bar animation used when showing or hiding. This option is only supported on iOS.1.0.0

StatusBarInfo

PropTypeDescriptionSince
visiblebooleanWhether the status bar is visible or not.1.0.0
styleStyleThe current status bar style.1.0.0
colorstringThe current status bar color. This option is only supported on Android.1.0.0
overlaysbooleanWhether the statusbar is overlaid or not. This option is only supported on Android.1.0.0

SetOverlaysWebViewOptions

PropTypeDescriptionSince
overlaybooleanWhether to overlay the status bar or not.1.0.0

Enums

Style

MembersValueDescriptionSince
Dark'DARK'Light text for dark backgrounds.1.0.0
Light'LIGHT'Dark text for light backgrounds.1.0.0
Default'DEFAULT'On iOS 13 and newer the style is based on the device appearance. If the device is using Dark mode, the statusbar text will be light. If the device is using Light mode, the statusbar text will be dark. On iOS 12 and older the statusbar text will be dark. On Android the default will be the one the app was launched with.1.0.0

Animation

MembersValueDescriptionSince
None'NONE'No animation during show/hide.1.0.0
Slide'SLIDE'Slide animation during show/hide.1.0.0
Fade'FADE'Fade animation during show/hide.1.0.0
0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago