
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
capacitor-plugin-android-safe-area
Advanced tools
Capacitor plugin for retrieving proper top offset of Android status bar
Capacitor plugin for retrieving proper top offset of Android status bar.
This repo is published version with changed name of https://github.com/jorisbertomeu/capacitor-insets-v2, which was based on archived https://github.com/igorcd/capacitor-insets-plugin/. It should work perfectly fine in Capacitor@4
.
# with npm
npm install --save capacitor-plugin-android-insets
# with yarn
yarn add capacitor-plugin-android-insets
# after any install
npx cap sync
This plugin is required only on Android when using StatusBar.setOverlaysWebView({ overlay: true })
. There is a problem with top offset counting, when status bar is transparent. Related issue: https://github.com/ionic-team/capacitor/issues/2840.
import { AndroidInsets } from 'capacitor-plugin-android-insets'
const { value } = await AndroidInsets.top();
top() => Promise<TopBottomReturn>
Returns top offset of the status bar
Returns: Promise<TopBottomReturn>
bottom() => Promise<TopBottomReturn>
Returns bottom offset of the status bar
Returns: Promise<TopBottomReturn>
Prop | Type |
---|---|
value | number |
FAQs
Capacitor plugin for retrieving proper top offset of Android status bar
The npm package capacitor-plugin-android-safe-area receives a total of 0 weekly downloads. As such, capacitor-plugin-android-safe-area popularity was classified as not popular.
We found that capacitor-plugin-android-safe-area demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.