6.0.0 • Published 18 days ago

@falconeta/capacitor-android-full-view v6.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
18 days ago

capacitor-android-full-view

Capacitor plugin for retrieving proper top offset of Android status bar.

Install

# with npm
npm install --save @falconeta/capacitor-android-full-view
# with yarn
yarn add @falconeta/capacitor-android-full-view
# after any install
npx cap sync

Why?

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.

Usage

import { AndroidFullView } from 'capacitor-android-full-view'

const { value } = await AndroidFullView.top();

API

top()

top() => Promise<TopBottomReturn>

Returns top offset of the status bar

Returns: Promise<TopBottomReturn>


bottom()

bottom() => Promise<TopBottomReturn>

Returns bottom offset of the status bar

Returns: Promise<TopBottomReturn>


Interfaces

TopBottomReturn

PropType
valuenumber
6.0.0

18 days ago

5.0.0

12 months ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago