Source set: Common
interface InputModeManager
The InputModeManager is accessible as a CompositionLocal, that provides the current InputMode.
Properties
inputMode
Source set: Common
val inputMode: InputMode
The current InputMode.
Functions
requestInputMode
fun requestInputMode(inputMode: InputMode): Boolean
Send a request to change the InputMode.
This may not succeed, depending on platform implementation. For example, on Android the input mode is managed by the platform, and an app can't programmatically request to move from InputMode.Keyboard to InputMode.Touch outside of tests.
Parameters
| inputMode | The requested InputMode. |
Returns
| true if the system is in the requested mode, after processing this request. |