SuggestionSpan.LocaleObject Property
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.
Returns a well-formed BCP 47 language tag representation of the suggestions, as a
Locale
object.
public virtual Java.Util.Locale? LocaleObject { [Android.Runtime.Register("getLocaleObject", "()Ljava/util/Locale;", "GetGetLocaleObjectHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getLocaleObject", "()Ljava/util/Locale;", "GetGetLocaleObjectHandler", ApiSince=24)>]
member this.LocaleObject : Java.Util.Locale
Property Value
the locale of the suggestions. null
is returned if no locale is specified.
- Attributes
Remarks
Returns a well-formed BCP 47 language tag representation of the suggestions, as a Locale
object.
<b>Caveat</b>: The returned object is guaranteed to be a a well-formed BCP 47 language tag representation. For example, this method can return an empty locale rather than returning a malformed data when this object is initialized with an malformed Locale
object, e.g. new Locale(" a ", " b c d ", " "
.
Java documentation for android.text.style.SuggestionSpan.getLocaleObject()
.
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.