VirtualKeyboardPlugin.state
The state object of the system virtual keyboard;
The attribute value is an object that implements the StateObserver interface;
Property
state.currentState
the current state object;
The value of the attribute is an object that implements part of the State interface;
The acquisition and setting of the state can be achieved through currentState; [Generally speaking, do not manually set the attribute value of currentState, this value will be automatically updated]
The attribute value is undefined until the initial update is complete;
The list of legal properties for currentStat includes:
["overlay", "insets",]
Method
is a Generator function;
Realized the reading and monitoring of plug-in status;
Once the state of the corresponding plug-in changes, it will trigger the listener set by the StateObserver.onChange() method;stop listening status
Add a listener; multiple listeners can be added through multiple calls;
state.getState([force_update])
Get the value of the current state
Event
- none
Platform Compatibility
Property/Method/Event | Android | IOS | Desktop-Dev | Desktop |
---|---|---|---|---|
currentState | ✅ | ✅ | ✅ | X |
jsonlines | ✅ | ✅ | ✅ | X |
stopObserve | ✅ | ✅ | ✅ | X |
onChange | ✅ | ✅ | ✅ | X |
getState | ✅ | ✅ | ✅ | X |