Skip to content

Tarjeta-Ultra/cordova-plugin-safe-area

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe Area

This plugin allows developers to collect safe area dimensions such as status bar height, navigation bar height, and insets for displays with cutouts. This can be used to create an edge-to-edge experience on devices.

Platforms

The following platforms are supported.

  • Android

Installation

This plugin requires AndroidX and Kotlin.

cordova plugin add https://github.com/Tarjeta-Ultra/cordova-plugin-safe-area.git

Functions

The following functions will be attached to cordova.plugins.SafeArea. Please note that the units of the dimensions are in physical pixels and may need to be normalized.

declare interface SafeAreaInsets {
  top: number;
  bottom: number;
  left: number;
  right: number;
}

declare interface SystemDimensions {
  statusBarHeight: number;
  navigationBarHeight: number;
}

declare function getSafeAreaInsets(success: (_: SafeAreaInsets) => void, error: (_: string) => void): boolean;
declare function getSystemDimensions(success: (_: SystemDimensions) => void, error: (_: string) => void): boolean;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages