Share via


EditorInfo.HintLocales Property

Definition

List of the languages that the user is supposed to switch to no matter what input method subtype is currently used.

[Android.Runtime.Register("hintLocales", ApiSince=24)]
public Android.OS.LocaleList? HintLocales { get; set; }
[<Android.Runtime.Register("hintLocales", ApiSince=24)>]
member this.HintLocales : Android.OS.LocaleList with get, set

Property Value

Attributes

Remarks

List of the languages that the user is supposed to switch to no matter what input method subtype is currently used. This special "hint" can be used mainly for, but not limited to, multilingual users who want IMEs to switch language context automatically.

null means that no special language "hint" is needed.

<strong>Editor authors:</strong> Specify this only when you are confident that the user will switch to certain languages in this context no matter what input method subtype is currently selected. Otherwise, keep this null. Explicit user actions and/or preferences would be good signals to specify this special "hint", For example, a chat application may be able to put the last used language at the top of #hintLocales based on whom the user is going to talk, by remembering what language is used in the last conversation. Do not specify android.widget.TextView#getTextLocales() only because it is used for text rendering.

Java documentation for android.view.inputmethod.EditorInfo.hintLocales.

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