Language

InlineSuggestionsRequest.Builder.SetSupportedLocales(LocaleList) Method

Definition

The IME provided locales for the request.

[Android.Runtime.Register("setSupportedLocales", "(Landroid/os/LocaleList;)Landroid/view/inputmethod/InlineSuggestionsRequest$Builder;", "", ApiSince=30)]
public Android.Views.InputMethods.InlineSuggestionsRequest.Builder SetSupportedLocales(Android.OS.LocaleList value);
[<Android.Runtime.Register("setSupportedLocales", "(Landroid/os/LocaleList;)Landroid/view/inputmethod/InlineSuggestionsRequest$Builder;", "", ApiSince=30)>]
member this.SetSupportedLocales : Android.OS.LocaleList -> Android.Views.InputMethods.InlineSuggestionsRequest.Builder

Parameters

value
LocaleList

Returns

Attributes

Remarks

The IME provided locales for the request. If non-empty, the inline suggestions should return languages from the supported locales. If not provided, it'll default to be empty if target SDK is S or above, and default to system locale otherwise.

Note for Autofill Providers: It is recommended for the returned inline suggestions to have one locale to guarantee consistent UI rendering.

Android reference for android.view.inputmethod.InlineSuggestionsRequest.Builder.setSupportedLocales.

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