Language

Locale.Builder.SetLanguage(String) Method

Definition

Sets the language.

[Android.Runtime.Register("setLanguage", "(Ljava/lang/String;)Ljava/util/Locale$Builder;", "")]
public Java.Util.Locale.Builder SetLanguage(string? language);
[<Android.Runtime.Register("setLanguage", "(Ljava/lang/String;)Ljava/util/Locale$Builder;", "")>]
member this.SetLanguage : string -> Java.Util.Locale.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.

Java reference for java.util.Locale.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