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

The supported locale list to include in the request.

Returns

This builder after the locale list is stored.

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, the default on Android 11 is the system locale list. On Android 12 through Android 17, the default is an empty list for apps that target API level 31 or later and the system locale list for older target API levels. Compatibility settings can override this behavior.

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