LocaleConfig Constructors
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.
Overloads
LocaleConfig(Context) |
Returns an override LocaleConfig if it has been set via
|
LocaleConfig(LocaleList) |
Return the LocaleConfig with any sequence of locales combined into a |
LocaleConfig(IntPtr, JniHandleOwnership) |
LocaleConfig(Context)
Returns an override LocaleConfig if it has been set via
LocaleManager#setOverrideLocaleConfig(LocaleConfig)
.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "", ApiSince=33)]
public LocaleConfig (Android.Content.Context context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "", ApiSince=33)>]
new Android.App.LocaleConfig : Android.Content.Context -> Android.App.LocaleConfig
Parameters
- context
- Context
the context of the application.
- Attributes
Remarks
Returns an override LocaleConfig if it has been set via LocaleManager#setOverrideLocaleConfig(LocaleConfig)
. Otherwise, returns the LocaleConfig from the application resources.
Java documentation for android.app.LocaleConfig.LocaleConfig(android.content.Context)
.
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
LocaleConfig(LocaleList)
Return the LocaleConfig with any sequence of locales combined into a LocaleList
.
[Android.Runtime.Register(".ctor", "(Landroid/os/LocaleList;)V", "", ApiSince=34)]
public LocaleConfig (Android.OS.LocaleList locales);
[<Android.Runtime.Register(".ctor", "(Landroid/os/LocaleList;)V", "", ApiSince=34)>]
new Android.App.LocaleConfig : Android.OS.LocaleList -> Android.App.LocaleConfig
Parameters
- locales
- LocaleList
the desired locales for a specified application
- Attributes
Remarks
Return the LocaleConfig with any sequence of locales combined into a LocaleList
.
<b>Note:</b> Applications seeking to create an override LocaleConfig via LocaleManager#setOverrideLocaleConfig(LocaleConfig)
should use this constructor to first create the LocaleConfig they intend the system to see as the override.
<b>Note:</b> The creation of this LocaleConfig does not automatically mean it will become the override config for an application. Any LocaleConfig desired to be the override must be passed into the LocaleManager#setOverrideLocaleConfig(LocaleConfig)
, otherwise it will not persist or affect the system's understanding of app-supported resources.
Java documentation for android.app.LocaleConfig.LocaleConfig(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.
Applies to
LocaleConfig(IntPtr, JniHandleOwnership)
protected LocaleConfig (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.LocaleConfig : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.LocaleConfig
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership