Socket
Socket
Sign inDemoInstall

capacitor-areas

Package Overview
Dependencies
2
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    capacitor-areas

This plugin provides functions to detect the devices safe area and the status bar and navigation bar height.


Version published
Weekly downloads
9
increased by350%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

npm version capacitor support

capacitor-areas

This plugin provides functions to detect the devices safe area and the status bar and navigation bar height.

Supported platforms

PlatformSupported
Android
iOS
Web

Install

npm i capacitor-areas
npx cap sync android

API

getSafeArea()

getSafeArea() => any

Get the safe area of the device

Returns: any


getStatusBarHeight()

getStatusBarHeight() => any

Get the status bar height of the device

Returns: any


getNavigationBarHeight()

getNavigationBarHeight() => any

Get the navigation bar height of the device. Returns 0 when the device has hardware buttons.

Returns: any


Interfaces

Areas
PropType
topnumber
leftnumber
bottomnumber
rightnumber

Keywords

FAQs

Last updated on 06 May 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