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.

If the view wasn't focused, the soft input method is attempted to be hidden anyway. This facilitates use-cases where we want to hide the keyboard after a view loses focus.