StatusBarPlugin.getState()
PluginStatusBarPlugingetStateLess 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/Events | Android | iOS | Desktop-Dev | Desktop | 
|---|---|---|---|---|
| getState | ✅ | ✅ | ✅ | X | 
Related Links
 Powered by  Waline  v2.15.7