Sdílet prostřednictvím


InlineSuggestionsRequest.SupportedLocales Property

Definition

The IME provided locales for the request.

public Android.OS.LocaleList SupportedLocales { [Android.Runtime.Register("getSupportedLocales", "()Landroid/os/LocaleList;", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getSupportedLocales", "()Landroid/os/LocaleList;", "", ApiSince=30)>]
member this.SupportedLocales : Android.OS.LocaleList

Property Value

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 <b>recommended</b> for the returned inline suggestions to have one locale to guarantee consistent UI rendering.

Java documentation for android.view.inputmethod.InlineSuggestionsRequest.getSupportedLocales().

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