Skip to main content

StatusBarPlugin.getState()

BFChainPluginStatusBarPlugingetStateLess than 1 minute

Get the plugin state value

StatusBarPlugin.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 StatusBarPlugin.state attribute value;

Example

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

Platform Compatibility

Properties/Methods/EventsAndroidiOSDesktop-DevDesktop
getStateX

StatusBarPlugin

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