capacitor-navigation-bar-plus
v5.0.7
Published
A capacitor plugin to change the color of navigation bar
Downloads
4
Readme
capacitor-navigation-bar-color
A capacitor plugin to change the color of navigation bar
Install
npm install capacitor-navigation-bar-plus
npx cap sync
Supported Platform
- Android
API
setNavigationBarColor(...)
getNavigationBarColor()
enterFullScreen()
exitFullScreen()
showNavigationBar()
hideNavigationBar()
isNotchAvailable()
setNavigationBarColor(...)
Set the navigation bar color given in HEX string.
setNavigationBarColor(options: { color: string; }) => Promise<void>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { color: string; } |
getNavigationBarColor()
Returns the current navigation bar color in HEX string.
getNavigationBarColor() => Promise<{ color: string; }>
Returns: Promise<{ color: string; }>
enterFullScreen()
Enters the full screen mode (hides the status bar and navigation bar).
enterFullScreen() => Promise<void>
exitFullScreen()
Exits the full screen mode (re-shows the status bar and navigation bar if hidden already).
exitFullScreen() => Promise<void>
showNavigationBar()
Shows the navigation bar (re-shows navigation bar if hidden already).
exitFullScreen() => Promise<void>
hideNavigationBar()
Hides the navigation bar.
exitFullScreen() => Promise<void>