VirtualKeyboardPlugin.getState()
PluginVirtualKeyboardPlugingetStateLess than 1 minute
Get the state of the virtual keyboard;
VirtualKeyboardPlugin.getState([force_update])
parameters
force_update
The parameter accepts a boolean type of data; whether it is necessary to force the status to be updated;
force_update === true will re-read status updates from the system;
force_update === false will return the last cached state data;
return value
Return A Promise object, resolve fulfills an object that implements part of the State interface; for details, refer to the value of the VirtualKeyboardPlugin.state property;
Example
import { virtualKeyboardPlugin } from "@plaoc/plugins";
const value = virtualKeyboardPlugin.getState(true)
Platform Compatibility
Property/Method/Event | Android | IOS | Desktop-Dev | Desktop |
---|---|---|---|---|
getState | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.15.7