Skip to content

untiny/capacitor-safe-area

Repository files navigation

capacitor-safe-area

A capacitor plugin that can obtain a safe area on Android and iOS.

Install

npm install @untiny/capacitor-safe-area
npx cap sync

API

``

``

getSafeArea()

getSafeArea() => Promise<SafeAreaInset>

获取安全区域

Returns: Promise<SafeAreaInset>


getStatusBarHeight()

getStatusBarHeight() => Promise<{ height: number; }>

获取状态栏高度

Returns: Promise<{ height: number; }>


Interfaces

SafeAreaInset

Prop Type
top number
right number
bottom number
left number

About

A capacitor plugin that can obtain a safe area on Android and iOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published