SoftInputAccessor

An interface for interacting with the default Android soft input method, such as showing and hiding the standard on-screen Android keyboard.

Properties

Link copied to clipboard

Whether or not soft input is currently shown on the screen.

Functions

Link copied to clipboard
abstract fun hideSoftInput(view: View)

Hides the input method for the given view, clearing the view's focus in the process. By clearing the focus, we allow Android to automatically show the soft input again upon interacting with it again.

Link copied to clipboard
abstract fun showSoftInput(view: View)

Shows the input method for the given view, focusing the view in the process.