Skip to content

Latest commit

 

History

History
63 lines (38 loc) · 1.1 KB

README.md

File metadata and controls

63 lines (38 loc) · 1.1 KB

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