6.0.0 • Published 1 year ago

capacitor-areas v6.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
6.0.0

1 year ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago