Locale.Builder.SetUnicodeLocaleKeyword(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the Unicode locale keyword type for the given key.
[Android.Runtime.Register("setUnicodeLocaleKeyword", "(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Locale$Builder;", "")]
public Java.Util.Locale.Builder SetUnicodeLocaleKeyword(string key, string? type);
[<Android.Runtime.Register("setUnicodeLocaleKeyword", "(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Locale$Builder;", "")>]
member this.SetUnicodeLocaleKeyword : string * string -> Java.Util.Locale.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. The key must be non-null. If the type is null, the method attempts to remove the keyword. On Android 5 and 6, removal uses the key with its original case and does not check whether the key is well-formed. On Android 7 through 17, the key must be well-formed and is matched without regard to case. If the type is not null, the key and type are checked for valid syntax. Android 5 and 6 reject an empty type, while Android 7 through 17 allow it. Stored keys and types are converted to lower case. On Android 7 through 17, setting the 'u' extension via setExtension(char, java.lang.String) replaces all Unicode locale keywords with those defined in the extension. On Android 5 and 6, existing keywords that are not in the new extension are retained.
Java reference for java.util.Locale.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.