Udostępnij za pośrednictwem


InputMethodService.InputMethodSessionImpl.ToggleSoftInput Method

Definition

Handles a request to toggle the IME visibility.

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

Parameters

showFlags
ShowFlags
hideFlags
HideSoftInputFlags
Attributes

Remarks

Handles a request to toggle the IME visibility.

This member is deprecated. Starting in 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.inputmethodservice.InputMethodService.InputMethodSessionImpl.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