A plugin that get the safe area insets for Android and iOS
npm install safe-area-plugin
npx cap sync
refresh() => any
Returns: any
getSafeAreaInsets() => any
Returns: any
addListener(eventName: 'safeAreaPluginsInsetChange', listener: SafeAreaInsetsChangedCallback) => PluginListenerHandle
Param | Type |
---|---|
eventName |
"safeAreaPluginsInsetChange" |
listener |
(insets: SafeAreaInsets) => void |
Returns: PluginListenerHandle
Prop | Type |
---|---|
insets |
SafeAreaInsets |
Prop | Type |
---|---|
top |
number |
bottom |
number |
right |
number |
left |
number |
Prop | Type |
---|---|
remove |
() => any |