Språk

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

is the preferred physical keyboard BCP-47 language tag. This is used to match the keyboardLocale attribute in the physical keyboard definition. If it's null, the subtype's language tag will be used.

layoutType
String

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

Returns

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