0.0.9 • Published 23 days ago
@varsitysoftware/capacitor-plugin-safe-area v0.0.9
@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 |