@untiny/capacitor-safe-area
v1.0.3
Published
A capacitor plugin that can obtain a safe area on Android and iOS.
Readme
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 syncAPI
``
``
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 |
