Språk

ShowSoftInputFlags Enum

Definition

Enumerates values returned by the Explicit, Forced, and None members and taken as a parameter of several types.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum ShowSoftInputFlags
[<System.Flags>]
type ShowSoftInputFlags = 
Inheritance
ShowSoftInputFlags
Attributes

Fields

Name Value Description
None 0
Explicit 1

This constant was deprecated in API level 37. InputMethodManager.SHOW_IMPLICIT is deprecated therefore this flag becomes the default. There is no need to pass it anymore.

Flag for showSoftInput(int, ResultReceiver): this show has been explicitly requested by the user. If not set, the system has decided it may be a good idea to show the input method based on a navigation operation in the UI.

Android reference for android.view.inputmethod.InputMethod.SHOW_EXPLICIT.

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.

Forced 2

This constant was deprecated in API level 35. Starting in Android B, InputMethodManager.SHOW_IMPLICIT is deprecated and has no effect, therefore all requests will have this flag set. IMEs should no longer react to this flag.

Flag for showSoftInput(int, ResultReceiver): this show has been forced to happen by the user. If set, the input method should remain visible until deliberately dismissed by the user in its UI.

Android reference for android.view.inputmethod.InputMethod.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.

Remarks

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