Skip to main content

SafeAreaPlugin.setStateByKey()

BFChainPluginSafeAreaPluginsetStateByKeyLess than 1 minute

Set the value of a state property

SafeAreaPlugin.setStateByKey(key, value)

Parameters

  • key

    String, the name of the state property to set
    Valid properties include: [overlay]

  • value

    The value to set for the state property;
    Valid values range refer to SafeAreaPlugin.state property value;

Return Value

  • A Promise object that resolves to null

Example

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

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
setStateByKeyX

SafeAreaPlugin

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