Skip to content

VarsitySoftware/capacitor-plugin-safe-area

 
 

Repository files navigation

@varsitysoftware/capacitor-plugin-safe-area

A plugin to get safe area info

Install

npm install @varsitysoftware/capacitor-plugin-safe-area
npx cap sync

API

getSafeAreaInsets()

getSafeAreaInsets() => Promise<SafeAreaInsets>

Returns: Promise<SafeAreaInsets>


getStatusBarHeight()

getStatusBarHeight() => Promise<StatusBarInfo>

Returns: Promise<StatusBarInfo>


Interfaces

SafeAreaInsets

Prop Type
insets SafeArea

SafeArea

Prop Type
top number
right number
bottom number
left number

StatusBarInfo

Prop Type
statusBarHeight number

About

A capacitor plugin to get Statusbar Height on Android and get SafeArea info on IOS

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Swift 36.5%
  • Java 34.7%
  • Ruby 9.1%
  • Objective-C 9.0%
  • TypeScript 7.9%
  • JavaScript 2.8%