Language

ULocale.Builder.SetLocale(ULocale) Method

Definition

Resets the Builder to match the provided locale.

[Android.Runtime.Register("setLocale", "(Landroid/icu/util/ULocale;)Landroid/icu/util/ULocale$Builder;", "", ApiSince=24)]
public Android.Icu.Util.ULocale.Builder SetLocale(Android.Icu.Util.ULocale locale);
[<Android.Runtime.Register("setLocale", "(Landroid/icu/util/ULocale;)Landroid/icu/util/ULocale$Builder;", "", ApiSince=24)>]
member this.SetLocale : Android.Icu.Util.ULocale -> Android.Icu.Util.ULocale.Builder

Parameters

locale
ULocale

the locale

Returns

This builder.

Attributes

Remarks

Resets the Builder to match the provided locale. Existing state is discarded.

All fields of the locale must be well-formed, see Locale.

Locales with any ill-formed fields cause IllformedLocaleException to be thrown.

Android reference for android.icu.util.ULocale.Builder.setLocale.

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