SoftwareKeyboardControllerCompat
public final class SoftwareKeyboardControllerCompat
Provide controls for showing and hiding the IME.
This class provides the implementation for show and hide for the ime.
This class only requires a View as a dependency, whereas WindowInsetsControllerCompat requires a Window for all of its behavior.
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
void |
hide()Hide the software keyboard. |
void |
show()Request that the system show a software keyboard. |
Public constructors
SoftwareKeyboardControllerCompat
public SoftwareKeyboardControllerCompat(@NonNull View view)
Public methods
hide
public void hide()
Hide the software keyboard.
This request is best effort, if the system cannot hide the software keyboard this call will silently be ignored.
show
public void 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.