{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

InputModeManager

public interface InputModeManager


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

Summary

Public methods

abstract @NonNull InputMode

The current InputMode.

abstract boolean

Send a request to change the InputMode.

Public methods

getInputMode

abstract @NonNull InputMode getInputMode()

The current InputMode.

requestInputMode

@ExperimentalComposeUiApi
abstract boolean requestInputMode(@NonNull InputMode inputMode)

Send a request to change the InputMode.

Parameters
@NonNull InputMode inputMode

The requested InputMode.

Returns
boolean

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