SafeAreaPlugin.getOverlay()

BFChainAugust 11, 2023
  • Plugin
  • SafeAreaPlugin
  • getOverlay
Less than 1 minute

Query the overlay status of the safe area;

SafeAreaPlugin.getOverlay()

Parameters

  • None

Return Value

  • A Promise object that resolves to a boolean; If the resolved value is true, it indicates that the content in the safe area will be overlapped by system bars; If the resolved value is false, it indicates that the content in the safe area will not be overlapped by system bars;

Example

import { SafeAreaPlugin } from "@plaoc/plugins";
const value = SafeAreaPlugin.getOverlay()

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
getOverlayX

SafeAreaPlugin

Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.13.0