InputMethodManager.HideSoftInputFromInputMethod Method

Definition

Close/hide the input method's soft input area, so the user no longer sees it or can interact with it.

[Android.Runtime.Register("hideSoftInputFromInputMethod", "(Landroid/os/IBinder;I)V", "")]
public void HideSoftInputFromInputMethod (Android.OS.IBinder? token, Android.Views.InputMethods.HideSoftInputFlags flags);
[<Android.Runtime.Register("hideSoftInputFromInputMethod", "(Landroid/os/IBinder;I)V", "")>]
member this.HideSoftInputFromInputMethod : Android.OS.IBinder * Android.Views.InputMethods.HideSoftInputFlags -> unit

Parameters

token
IBinder

Supplies the identifying token given to an input method when it was started, which allows it to perform this operation on itself.

flags
HideSoftInputFlags

Provides additional operating flags. Currently may be 0 or have the #HIDE_IMPLICIT_ONLY, #HIDE_NOT_ALWAYS bit set.

Attributes

Remarks

Close/hide the input method's soft input area, so the user no longer sees it or can interact with it. This can only be called from the currently active input method, as validated by the given token.

This member is deprecated. Use InputMethodService#requestHideSelf(int) instead. This method was intended for IME developers who should be accessing APIs through the service. APIs in this class are intended for app developers interacting with the IME.

Java documentation for android.view.inputmethod.InputMethodManager.hideSoftInputFromInputMethod(android.os.IBinder, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to