共用方式為


Locale.SetDefault(Locale+Category, Locale) Method

Definition

Sets the default locale for the specified Category for this instance of the Java Virtual Machine.

[Android.Runtime.Register("setDefault", "(Ljava/util/Locale$Category;Ljava/util/Locale;)V", "", ApiSince=24)]
public static void SetDefault (Java.Util.Locale.Category category, Java.Util.Locale newLocale);
[<Android.Runtime.Register("setDefault", "(Ljava/util/Locale$Category;Ljava/util/Locale;)V", "", ApiSince=24)>]
static member SetDefault : Java.Util.Locale.Category * Java.Util.Locale -> unit

Parameters

category
Locale.Category
  • the specified category to set the default locale
newLocale
Locale
  • the new default locale
Attributes

Remarks

Java documentation for java.util.Locale.setDefault(java.util.Category, java.util.Locale).

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