Share via


LocaleManager.SystemLocales Property

Definition

Returns the current system locales, ignoring app-specific overrides.

public virtual Android.OS.LocaleList SystemLocales { [Android.Runtime.Register("getSystemLocales", "()Landroid/os/LocaleList;", "GetGetSystemLocalesHandler", ApiSince=33)] get; }
[<get: Android.Runtime.Register("getSystemLocales", "()Landroid/os/LocaleList;", "GetGetSystemLocalesHandler", ApiSince=33)>]
member this.SystemLocales : Android.OS.LocaleList

Property Value

Attributes

Remarks

Returns the current system locales, ignoring app-specific overrides.

<b>Note:</b> Apps should generally access the user's locale preferences as indicated in their in-process LocaleLists. However, in case an app-specific locale is set, this method helps cater to rare use-cases which might require specifically knowing the system locale.

<b>Note:</b> This API is not user-aware. It returns the system locales for the foreground user.

Java documentation for android.app.LocaleManager.getSystemLocales().

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