@untiny/capacitor-safe-area
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

capacitor-safe-area

A capacitor plugin that can obtain a safe area on Android and iOS.

Install

npm install @untiny/capacitor-safe-area
npx cap sync

API

``

``

getSafeArea()

getSafeArea() => Promise<SafeAreaInset>

获取安全区域

Returns: Promise<SafeAreaInset>


getStatusBarHeight()

getStatusBarHeight() => Promise<{ height: number; }>

获取状态栏高度

Returns: Promise<{ height: number; }>


Interfaces

SafeAreaInset

Prop Type
top number
right number
bottom number
left number

Readme

Keywords

Package Sidebar

Install

npm i @untiny/capacitor-safe-area

Weekly Downloads

15

Version

1.0.3

License

MIT

Unpacked Size

22.1 kB

Total Files

27

Last publish

Collaborators

  • untiny