@varsitysoftware/capacitor-plugin-safe-area
v0.0.10
Published
A plugin to get safe area info
Downloads
4
Maintainers
Readme
@varsitysoftware/capacitor-plugin-safe-area
A plugin to get safe area info
Install
npm install @varsitysoftware/capacitor-plugin-safe-area
npx cap sync
API
getSafeAreaInsets()
getSafeAreaInsets() => Promise<SafeAreaInsets>
Returns: Promise<SafeAreaInsets>
getStatusBarHeight()
getStatusBarHeight() => Promise<StatusBarInfo>
Returns: Promise<StatusBarInfo>
Interfaces
SafeAreaInsets
| Prop | Type |
| ------------ | --------------------------------------------- |
| insets
| SafeArea |
SafeArea
| Prop | Type |
| ------------ | ------------------- |
| top
| number |
| right
| number |
| bottom
| number |
| left
| number |
StatusBarInfo
| Prop | Type |
| --------------------- | ------------------- |
| statusBarHeight
| number |