InputModeManager


The InputModeManager is accessible as a CompositionLocal, that provides the current InputMode.

Summary

Public functions

Boolean

Send a request to change the InputMode.

Cmn

Public properties

InputMode

The current InputMode.

Cmn

Public 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: InputMode

The requested InputMode.

Returns
Boolean

true if the system is in the requested mode, after processing this request.

Public properties

inputMode

val inputModeInputMode

The current InputMode.