SoftwareKeyboardController
interface SoftwareKeyboardController
Provide software keyboard control.
Functions
fun show()
Request that the system show a software keyboard.
This request is best effort. If the system can currently show a software keyboard, it will be shown. However, there is no guarantee that the system will be able to show a software keyboard. If the system cannot show a software keyboard currently, this call will be silently ignored.
The software keyboard will never show if there is no composable that will accept text input,
such as a TextField
when it is focused.
You may find it useful to ensure focus when calling this function.
You do not need to call this function unless you also call hide
, as the keyboard is
automatically shown and hidden by focus events in the BasicTextField.
Calling this function is considered a side-effect and should not be called directly from recomposition.
fun hide()
Hide the software keyboard.
This request is best effort, if the system cannot hide the software keyboard this call will silently be ignored.
Calling this function is considered a side-effect and should not be called directly from recomposition.