@mufan/capacitor-plugin-safe-area
v0.0.3
Published
A capacitor plugin for getting screen safe area
Downloads
1
Readme
@mufan/capacitor-plugin-safe-area
A capacitor plugin for getting screen safe area, android only currently.
Install
npm install @mufan/capacitor-plugin-safe-area
npx cap sync
API
getSafeArea()
getSafeArea() => Promise<SafeArea | undefined>
Returns: Promise<SafeArea>
getStatusBarHeight()
getStatusBarHeight() => Promise<{ value: number; }>
Returns: Promise<{ value: number; }>
getNavigationBarHeight()
getNavigationBarHeight() => Promise<{ value: number; }>
Returns: Promise<{ value: number; }>
Interfaces
SafeArea
| Prop | Type |
| ------------ | ------------------- |
| top
| number |
| left
| number |
| bottom
| number |
| right
| number |