InputMethodManager.ToggleSoftInput(ShowFlags, HideSoftInputFlags) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method toggles the input method window display.
[Android.Runtime.Register("toggleSoftInput", "(II)V", "")]
public void ToggleSoftInput (Android.Views.InputMethods.ShowFlags showFlags, Android.Views.InputMethods.HideSoftInputFlags hideFlags);
[<Android.Runtime.Register("toggleSoftInput", "(II)V", "")>]
member this.ToggleSoftInput : Android.Views.InputMethods.ShowFlags * Android.Views.InputMethods.HideSoftInputFlags -> unit
Parameters
- showFlags
- ShowFlags
Provides additional operating flags. May be
0 or have the #SHOW_IMPLICIT
,
#SHOW_FORCED
bit set.
- hideFlags
- HideSoftInputFlags
Provides additional operating flags. May be
0 or have the #HIDE_IMPLICIT_ONLY
,
#HIDE_NOT_ALWAYS
bit set.
- Attributes
Remarks
This method toggles the input method window display.
If the input window is already displayed, it gets hidden. If not the input window will be displayed.
This member is deprecated. Use #showSoftInput(View, int)
or #hideSoftInputFromWindow(IBinder, int)
explicitly instead. In particular during focus changes, the current visibility of the IME is not well defined. Starting in Build.VERSION_CODES#S Android S
, this only has an effect if the calling app is the current IME focus.
Java documentation for android.view.inputmethod.InputMethodManager.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.