LocaleManager.ApplicationLocales Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the UI locales for the calling app. -or- Sets the UI locales for the calling app.
public virtual Android.OS.LocaleList ApplicationLocales { [Android.Runtime.Register("getApplicationLocales", "()Landroid/os/LocaleList;", "GetGetApplicationLocalesHandler", ApiSince=33)] get; [Android.Runtime.Register("setApplicationLocales", "(Landroid/os/LocaleList;)V", "GetSetApplicationLocales_Landroid_os_LocaleList_Handler", ApiSince=33)] set; }
[<get: Android.Runtime.Register("getApplicationLocales", "()Landroid/os/LocaleList;", "GetGetApplicationLocalesHandler", ApiSince=33)>]
[<set: Android.Runtime.Register("setApplicationLocales", "(Landroid/os/LocaleList;)V", "GetSetApplicationLocales_Landroid_os_LocaleList_Handler", ApiSince=33)>]
member this.ApplicationLocales : Android.OS.LocaleList with get, set
Property Value
This value cannot be null.
- Attributes
Remarks
Returns EmptyLocaleList if no app-specific locales are set. Set this property to an empty locale list to reset to the system locale.
Changing the app locales causes a configuration change and may cause an activity lifecycle event. The locales are persisted and are backed up if the user has enabled Backup & Restore. See handling configuration changes.
The application receives a union of app-specific and system locales, with app-specific locales first. See locale resolution for how language resources are chosen.
Android reference for android.app.LocaleManager.getApplicationLocales.
Android reference for android.app.LocaleManager.setApplicationLocales.
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.