共用方式為


AbstractInputMethodService.AbstractInputMethodSessionImpl.ToggleSoftInput Method

Definition

Toggle the soft input window.

[Android.Runtime.Register("toggleSoftInput", "(II)V", "GetToggleSoftInput_IIHandler")]
public abstract void ToggleSoftInput (Android.Views.InputMethods.ShowFlags showFlags, Android.Views.InputMethods.HideSoftInputFlags hideFlags);
[<Android.Runtime.Register("toggleSoftInput", "(II)V", "GetToggleSoftInput_IIHandler")>]
abstract member ToggleSoftInput : Android.Views.InputMethods.ShowFlags * Android.Views.InputMethods.HideSoftInputFlags -> unit

Parameters

showFlags
ShowFlags

Provides additional operating flags. May be 0 or have the InputMethodManager#SHOW_IMPLICIT, InputMethodManager#SHOW_FORCED bit set.

hideFlags
HideSoftInputFlags

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

Implements

Attributes

Remarks

Toggle the soft input window. Applications can toggle the state of the soft input window.

This member is deprecated. Starting in android.os.Build.VERSION_CODES#S the system no longer invokes this method, instead it explicitly shows or hides the IME. An InputMethodService wishing to toggle its own visibility should instead invoke InputMethodService#requestShowSelf or InputMethodService#requestHideSelf

Java documentation for android.view.inputmethod.InputMethodSession.toggleSoftInput(int, 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