Language

ULocale.Builder.SetLanguage(String) Method

Definition

Sets the language.

[Android.Runtime.Register("setLanguage", "(Ljava/lang/String;)Landroid/icu/util/ULocale$Builder;", "", ApiSince=24)]
public Android.Icu.Util.ULocale.Builder SetLanguage(string language);
[<Android.Runtime.Register("setLanguage", "(Ljava/lang/String;)Landroid/icu/util/ULocale$Builder;", "", ApiSince=24)>]
member this.SetLanguage : string -> Android.Icu.Util.ULocale.Builder

Parameters

language
String

the language

Returns

This builder.

Attributes

Remarks

Sets the language. If language is the empty string or null, the language in this Builder is removed. Otherwise, the language must be well-formed or an exception is thrown.

The typical language value is a two or three-letter language code as defined in ISO639.

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

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