InputMethodManager.ToggleSoftInputFromWindow 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("toggleSoftInputFromWindow", "(Landroid/os/IBinder;II)V", "")]
public void ToggleSoftInputFromWindow (Android.OS.IBinder? windowToken, Android.Views.InputMethods.ShowSoftInputFlags showFlags, Android.Views.InputMethods.HideSoftInputFlags hideFlags);
[<Android.Runtime.Register("toggleSoftInputFromWindow", "(Landroid/os/IBinder;II)V", "")>]
member this.ToggleSoftInputFromWindow : Android.OS.IBinder * Android.Views.InputMethods.ShowSoftInputFlags * Android.Views.InputMethods.HideSoftInputFlags -> unit
Parameters
- windowToken
- IBinder
The token of the window that is making the request,
as returned by View#getWindowToken() View.getWindowToken()
.
- showFlags
- ShowSoftInputFlags
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.
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.