Socket
Socket
Sign inDemoInstall

@mauricewegner/capacitor-navigation-bar

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mauricewegner/capacitor-navigation-bar

Capacitor Plugin for Navigation Bar


Version published
Weekly downloads
862
increased by22.1%
Maintainers
1
Install size
45.3 kB
Created
Weekly downloads
 

Readme

Source


Navigation Bar

@mauricewegner/capacitor-navigation-bar

Capacitor plugin for Navigation Bar manipulation.



Install

npm install @mauricewegner/capacitor-navigation-bar
npx cap sync

Configuration

No configuration required for this plugin.

API

show()

show() => Promise<void>

Display the navigation bar.


hide()

hide() => Promise<void>

Hide the navigation bar.


setColor(...)

setColor(options: ColorParameters) => Promise<void>

Change the color of the navigation bar. *Support alpha hexadecimal numbers.

ParamType
optionsColorParameters

setTransparency(...)

setTransparency(options: { isTransparent: boolean; }) => Promise<void>

Set the Transparency

ParamType
options{ isTransparent: boolean; }

getColor()

getColor() => Promise<{ color: string; }>

Gets the current color of the navigation bar in Hexadecimal.

Returns: Promise<{ color: string; }>


addListener(NavigationBarPluginEvents.SHOW, ...)

addListener(event: NavigationBarPluginEvents.SHOW, listenerFunc: () => void) => PluginListenerHandle

Event fired after navigation bar is displayed

ParamTypeDescription
eventNavigationBarPluginEvents.SHOWThe event
listenerFunc() => voidCallback

Returns: PluginListenerHandle


addListener(NavigationBarPluginEvents.HIDE, ...)

addListener(event: NavigationBarPluginEvents.HIDE, listenerFunc: () => void) => PluginListenerHandle

Event fired after navigation bar is hidden

ParamTypeDescription
eventNavigationBarPluginEvents.HIDEThe event
listenerFunc() => voidCallback

Returns: PluginListenerHandle


addListener(NavigationBarPluginEvents.COLOR_CHANGE, ...)

addListener(event: NavigationBarPluginEvents.COLOR_CHANGE, listenerFunc: (returnObject: { color: string; }) => void) => PluginListenerHandle

Event fired after navigation bar color is changed

ParamTypeDescription
eventNavigationBarPluginEvents.COLOR_CHANGEThe event
listenerFunc(returnObject: { color: string; }) => voidCallback

Returns: PluginListenerHandle


Interfaces

ColorParameters
PropTypeDescription
colorstringSets the new color of the navigation bar.
darkButtonsbooleanSets whether the default navigation bar buttons should be black or white.
PluginListenerHandle
PropType
remove() => Promise<void>

Enums

NavigationBarPluginEvents
MembersValueDescription
SHOW'onShow'Called after the navigation bar is displayed
HIDE'onHide'Called after navigation bar is hidden
COLOR_CHANGE'onColorChange'Called after navigation bar color is changed

Keywords

FAQs

Last updated on 12 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc