次の方法で共有


LocaleManager.OverrideLocaleConfig Property

Definition

Returns the override LocaleConfig for the calling app. -or- Sets the override LocaleConfig for the calling app.

public virtual Android.App.LocaleConfig? OverrideLocaleConfig { [Android.Runtime.Register("getOverrideLocaleConfig", "()Landroid/app/LocaleConfig;", "GetGetOverrideLocaleConfigHandler", ApiSince=34)] get; [Android.Runtime.Register("setOverrideLocaleConfig", "(Landroid/app/LocaleConfig;)V", "GetSetOverrideLocaleConfig_Landroid_app_LocaleConfig_Handler", ApiSince=34)] set; }
[<get: Android.Runtime.Register("getOverrideLocaleConfig", "()Landroid/app/LocaleConfig;", "GetGetOverrideLocaleConfigHandler", ApiSince=34)>]
[<set: Android.Runtime.Register("setOverrideLocaleConfig", "(Landroid/app/LocaleConfig;)V", "GetSetOverrideLocaleConfig_Landroid_app_LocaleConfig_Handler", ApiSince=34)>]
member this.OverrideLocaleConfig : Android.App.LocaleConfig with get, set

Property Value

the override LocaleConfig, or null if the LocaleConfig isn't overridden.

Attributes

Remarks

Property getter documentation:

Returns the override LocaleConfig for the calling app.

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

Property setter documentation:

Sets the override LocaleConfig for the calling app.

<b>Note:</b> Only the app itself with the same user can override its own LocaleConfig.

<b>Note:</b> This function takes in a LocaleConfig which is intended to override the original config in the application&#39;s resources. This LocaleConfig will become the override config, and stored in a system file for future access.

<b>Note:</b> Using this function, applications can update their list of supported locales while running, without an update of the application&#39;s software. For more information, see the section on dynamic updates for an app's localeConfig.

Applications can remove the override LocaleConfig with a null object.

Java documentation for android.app.LocaleManager.setOverrideLocaleConfig(android.app.LocaleConfig).

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