New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hugotomazi/capacitor-navigation-bar

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hugotomazi/capacitor-navigation-bar

Capacitor Plugin for Navigation Bar

  • 4.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.2K
increased by9.97%
Maintainers
0
Weekly downloads
 
Created
Source


Navigation Bar

@hugotomazi/capacitor-navigation-bar

Capacitor plugin for Navigation Bar manipulation.



Donate with PayPal button


Maintainers

MaintainerGitHubSocial
Hugo Tomazihugotomazi@hugotomazi

Install

npm install @hugotomazi/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(...)

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

Event fired after navigation bar is displayed

ParamTypeDescription
eventNavigationBarPluginEvents.SHOWThe event
listenerFunc() => voidCallback

Returns: Promise<PluginListenerHandle>


addListener(...)

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

Event fired after navigation bar is hidden

ParamTypeDescription
eventNavigationBarPluginEvents.HIDEThe event
listenerFunc() => voidCallback

Returns: Promise<PluginListenerHandle>


addListener(...)

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

Event fired after navigation bar color is changed

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

Returns: Promise<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

Package last updated on 23 Jun 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc