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
- Attributes
Remarks
Property getter documentation:
Returns the UI locales for the calling app.
Returns a LocaleList#getEmptyLocaleList()
if no app-specific locales are set.
Java documentation for android.app.LocaleManager.getApplicationLocales()
.
Property setter documentation:
Sets the UI locales for the calling app.
Pass a LocaleList#getEmptyLocaleList()
to reset to the system locale.
<b>Note:</b> Changes to app locales will result in a configuration change (and potentially an Activity lifecycle event) being applied to the calling application. For more information, see the section on handling configuration changes. The set locales are persisted; they are backed up if the user has enabled Backup & Restore.
<b>Note:</b> Users' locale preferences are passed to applications by creating a union of any app-specific locales and system locales, with the app-specific locales appearing first. Language resources are then chosen per usual (as described in the section on locale resolution).
Java documentation for android.app.LocaleManager.setApplicationLocales(android.os.LocaleList)
.
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.