Freigeben über


InputMethodManager.ShowForced Field

Definition

Flag for #showSoftInput to indicate that the user has forced the input method open (such as by long-pressing menu) so it should not be closed until they explicitly do so.

[Android.Runtime.Register("SHOW_FORCED")]
public const Android.Views.InputMethods.ShowFlags ShowForced = 2;
[<Android.Runtime.Register("SHOW_FORCED")>]
val mutable ShowForced : Android.Views.InputMethods.ShowFlags

Field Value

Value = 2
Attributes

Remarks

Flag for #showSoftInput to indicate that the user has forced the input method open (such as by long-pressing menu) so it should not be closed until they explicitly do so.

This member is deprecated. Use #showSoftInput without this flag instead. Using this flag can lead to the soft input remaining visible even when the calling application is closed. The use of this flag can make the soft input remains visible globally. Starting in Build.VERSION_CODES#TIRAMISU Android T, this flag only has an effect while the caller is currently focused.

Java documentation for android.view.inputmethod.InputMethodManager.SHOW_FORCED.

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