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