Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@capacitor/status-bar

Package Overview
Dependencies
Maintainers
7
Versions
616
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor/status-bar

The StatusBar API Provides methods for configuring the style of the Status Bar, along with showing or hiding it.

  • 5.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
78K
decreased by-53.97%
Maintainers
7
Weekly downloads
 
Created

What is @capacitor/status-bar?

@capacitor/status-bar is a Capacitor plugin that provides an interface for managing the status bar on iOS and Android devices. It allows you to show or hide the status bar, change its style, and set its background color.

What are @capacitor/status-bar's main functionalities?

Hide Status Bar

This feature allows you to hide the status bar on both iOS and Android devices.

import { StatusBar } from '@capacitor/status-bar';

StatusBar.hide();

Show Status Bar

This feature allows you to show the status bar if it was previously hidden.

import { StatusBar } from '@capacitor/status-bar';

StatusBar.show();

Set Status Bar Style

This feature allows you to change the style of the status bar. You can set it to 'Dark' or 'Light'.

import { StatusBar, Style } from '@capacitor/status-bar';

StatusBar.setStyle({ style: Style.Dark });

Set Status Bar Background Color

This feature allows you to set the background color of the status bar. The color should be provided in hex format.

import { StatusBar } from '@capacitor/status-bar';

StatusBar.setBackgroundColor({ color: '#FF0000' });

Other packages similar to @capacitor/status-bar

Keywords

FAQs

Package last updated on 12 Jul 2023

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