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