Language

ULocale.Builder.SetUnicodeLocaleKeyword(String, String) Method

Definition

Sets the Unicode locale keyword type for the given key.

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

Parameters

key
String

the Unicode locale key

type
String

the Unicode locale type

Returns

This builder.

Attributes

Remarks

Sets the Unicode locale keyword type for the given key. If the type is null, the Unicode keyword is removed. Otherwise, the key must be non-null and both key and type must be well-formed or an exception is thrown.

Keys and types are converted to lower case.

Note:Setting the 'u' extension via setExtension(char, String) replaces all Unicode locale keywords with those defined in the extension.

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

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