
capacitor-navigation-bar
Set navigation bar color for android lolipop and higher
Install
npm install @capgo/capacitor-navigation-bar
npx cap sync
Example Apps
example-app: Interactive showcase that exercises all plugin options (color presets, custom hex, dark buttons, state reading).
API
Capacitor Navigation Bar Plugin for customizing the Android navigation bar.
setNavigationBarColor(...)
setNavigationBarColor(options: { color: NavigationBarColor | string; darkButtons?: boolean; }) => Promise<void>
Set the navigation bar color and button theme.
options | { color: string; darkButtons?: boolean; } | - Configuration for navigation bar appearance |
Since: 1.0.0
getNavigationBarColor()
getNavigationBarColor() => Promise<{ color: string; darkButtons: boolean; }>
Get the current navigation bar color and button theme.
Returns: Promise<{ color: string; darkButtons: boolean; }>
Since: 1.0.0
getPluginVersion()
getPluginVersion() => Promise<{ version: string; }>
Get the native Capacitor plugin version.
Returns: Promise<{ version: string; }>
Since: 1.0.0
Enums
NavigationBarColor
WHITE | '#FFFFFF' | White color |
BLACK | '#000000' | Black color |
TRANSPARENT | 'transparent' | Transparent color |