Skip to main content

SafeAreaPlugin.getState()

BFChainPluginSafeAreaPlugingetStateLess than 1 minute

Get the state of the safe area;

SafeAreaPlugin.getState([force_update]) 

Parameters

  • force_update

    Accepts a boolean data; whether to force update the state;
    force_update === true will read the state from the system again;
    force_update === false will return the cached state data last time;

Return Value

  • A Promise object that resolves to an object implementing partial State interface; see details in SafeAreaPlugin.state attribute value;

Example

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

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
getStateX

SafeAreaPlugin

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