Capacitor plugin for retrieving proper top offset, bottom offset and set full screen ONLY for android
npm install @falconeta/capacitor-android-full-viewCapacitor plugin for retrieving proper top offset of Android status bar.
``bash`with npm
npm install --save @falconeta/capacitor-android-full-viewwith yarn
yarn add @falconeta/capacitor-android-full-viewafter 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.
`ts
import { AndroidFullView } from 'capacitor-android-full-view'
const { value } = await AndroidFullView.top();
`
* top()
* bottom()
* Interfaces
`typescript`
top() => Promise
Returns top offset of the status bar
Returns: Promise<TopBottomReturn>
--------------------
`typescript`
bottom() => Promise
Returns bottom offset of the status bar
Returns: Promise<TopBottomReturn>
--------------------
#### TopBottomReturn
| Prop | Type |
| ----------- | ------------------- |
| value` | number |