Socket
Book a DemoInstallSign in
Socket

@falconeta/capacitor-android-full-view

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@falconeta/capacitor-android-full-view

Capacitor plugin for retrieving proper top offset, bottom offset and set full screen ONLY for android

7.0.1
latest
Source
npmnpm
Version published
Weekly downloads
32
-48.39%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

capacitor

FAQs

Package last updated on 02 Apr 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.