Skip to main content

StatusBarPlugin.setStateByKey()

BFChainPluginStatusBarPluginsetStateByKeyLess than 1 minute

Set the value of a state property in the system status bar

StatusBarPlugin.setStateByKey(key, value)

Parameters

  • key

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

  • value

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

Return Value

  • A Promise object that resolves to null

Example

import { statusBarPlugin } from "@plaoc/plugins";
const value = statusBarPlugin.setStateByKey("color", "#FFFFFFFF")

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
setStateByKeyX

StatusBarPlugin

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