InputMethodSubtype Constructors

Definition

Overloads

InputMethodSubtype(Int32, Int32, String, String, String, Boolean, Boolean)
Obsolete.

Constructor with no subtype ID specified.

InputMethodSubtype(Int32, Int32, String, String, String, Boolean, Boolean, Int32)
Obsolete.

Constructor.

InputMethodSubtype(Int32, Int32, String, String, String, Boolean, Boolean)

Caution

deprecated

Constructor with no subtype ID specified.

[Android.Runtime.Register(".ctor", "(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)V", "")]
[System.Obsolete("deprecated")]
public InputMethodSubtype (int nameId, int iconId, string? locale, string? mode, string? extraValue, bool isAuxiliary, bool overridesImplicitlyEnabledSubtype);
[<Android.Runtime.Register(".ctor", "(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Views.InputMethods.InputMethodSubtype : int * int * string * string * string * bool * bool -> Android.Views.InputMethods.InputMethodSubtype

Parameters

nameId
Int32
iconId
Int32
locale
String
mode
String
extraValue
String
isAuxiliary
Boolean
overridesImplicitlyEnabledSubtype
Boolean
Attributes

Remarks

Constructor with no subtype ID specified.

This member is deprecated. use InputMethodSubtypeBuilder instead. Arguments for this constructor have the same meanings as InputMethodSubtype#InputMethodSubtype(int, int, String, String, String, boolean, boolean, int) except "id".

Java documentation for android.view.inputmethod.InputMethodSubtype.InputMethodSubtype(int, int, java.lang.String, java.lang.String, java.lang.String, boolean, boolean).

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

InputMethodSubtype(Int32, Int32, String, String, String, Boolean, Boolean, Int32)

Caution

deprecated

Constructor.

[Android.Runtime.Register(".ctor", "(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZI)V", "")]
[System.Obsolete("deprecated")]
public InputMethodSubtype (int nameId, int iconId, string? locale, string? mode, string? extraValue, bool isAuxiliary, bool overridesImplicitlyEnabledSubtype, int id);
[<Android.Runtime.Register(".ctor", "(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZI)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Views.InputMethods.InputMethodSubtype : int * int * string * string * string * bool * bool * int -> Android.Views.InputMethods.InputMethodSubtype

Parameters

nameId
Int32

Resource ID of the subtype name string. The string resource may have exactly one %s in it. If there is, the %s part will be replaced with the locale's display name by the formatter. Please refer to #getDisplayName for details.

iconId
Int32

Resource ID of the subtype icon drawable.

locale
String

The locale supported by the subtype

mode
String

The mode supported by the subtype

extraValue
String

The extra value of the subtype. This string is free-form, but the API supplies tools to deal with a key-value comma-separated list; see #containsExtraValueKey and #getExtraValueOf.

isAuxiliary
Boolean

true when this subtype is auxiliary, false otherwise. An auxiliary subtype will not be shown in the list of enabled IMEs for choosing the current IME in the Settings even when this subtype is enabled. Please note that this subtype will still be shown in the list of IMEs in the IME switcher to allow the user to tentatively switch to this subtype while an IME is shown. The framework will never switch the current IME to this subtype by android.view.inputmethod.InputMethodManager#switchToLastInputMethod. The intent of having this flag is to allow for IMEs that are invoked in a one-shot way as auxiliary input mode, and return to the previous IME once it is finished (e.g. voice input).

overridesImplicitlyEnabledSubtype
Boolean

true when this subtype should be enabled by default if no other subtypes in the IME are enabled explicitly. Note that a subtype with this parameter being true will not be shown in the list of subtypes in each IME's subtype enabler. Having an "automatic" subtype is an example use of this flag.

id
Int32

The unique ID for the subtype. The input method framework keeps track of enabled subtypes by ID. When the IME package gets upgraded, enabled IDs will stay enabled even if other attributes are different. If the ID is unspecified or 0, Arrays.hashCode(new Object[] {locale, mode, extraValue, isAuxiliary, overridesImplicitlyEnabledSubtype, isAsciiCapable}) will be used instead.

Attributes

Remarks

Constructor.

This member is deprecated. use InputMethodSubtypeBuilder instead. "isAsciiCapable" is "false" in this constructor.

Java documentation for android.view.inputmethod.InputMethodSubtype.InputMethodSubtype(int, int, java.lang.String, java.lang.String, java.lang.String, boolean, boolean, 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