Language

InputMethodSubtype.InputMethodSubtypeBuilder.SetPhysicalKeyboardHint Method

Definition

Sets the physical keyboard hint information, such as language and layout.

[Android.Runtime.Register("setPhysicalKeyboardHint", "(Landroid/icu/util/ULocale;Ljava/lang/String;)Landroid/view/inputmethod/InputMethodSubtype$InputMethodSubtypeBuilder;", "GetSetPhysicalKeyboardHint_Landroid_icu_util_ULocale_Ljava_lang_String_Handler", ApiSince=34)]
public virtual Android.Views.InputMethods.InputMethodSubtype.InputMethodSubtypeBuilder SetPhysicalKeyboardHint(Android.Icu.Util.ULocale? languageTag, string layoutType);
[<Android.Runtime.Register("setPhysicalKeyboardHint", "(Landroid/icu/util/ULocale;Ljava/lang/String;)Landroid/view/inputmethod/InputMethodSubtype$InputMethodSubtypeBuilder;", "GetSetPhysicalKeyboardHint_Landroid_icu_util_ULocale_Ljava_lang_String_Handler", ApiSince=34)>]
abstract member SetPhysicalKeyboardHint : Android.Icu.Util.ULocale * string -> Android.Views.InputMethods.InputMethodSubtype.InputMethodSubtypeBuilder
override this.SetPhysicalKeyboardHint : Android.Icu.Util.ULocale * string -> Android.Views.InputMethods.InputMethodSubtype.InputMethodSubtypeBuilder

Parameters

languageTag
ULocale

The preferred physical keyboard locale. Its BCP-47 language tag is used to match the keyboardLocale attribute in the physical keyboard definition. If this is null, the system can use the subtype's language tag or legacy locale instead.

layoutType
String

The preferred physical keyboard layout, which is used to match the keyboardLayoutType attribute in the physical keyboard definition. See ActionQueryKeyboardLayouts. This value cannot be null.

Returns

This builder after the physical keyboard hints are stored.

Attributes

Remarks

Sets the physical keyboard hint information, such as language and layout. The system can use the hint information to automatically configure the physical keyboard for the subtype.

Android reference for android.view.inputmethod.InputMethodSubtype.InputMethodSubtypeBuilder.setPhysicalKeyboardHint.

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