TextLanguage.Builder.PutLocale(ULocale, Single) 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 a language locale for the processed text and assigns a confidence score.
[Android.Runtime.Register("putLocale", "(Landroid/icu/util/ULocale;F)Landroid/view/textclassifier/TextLanguage$Builder;", "", ApiSince=29)]
public Android.Views.TextClassifiers.TextLanguage.Builder PutLocale(Android.Icu.Util.ULocale locale, float confidenceScore);
[<Android.Runtime.Register("putLocale", "(Landroid/icu/util/ULocale;F)Landroid/view/textclassifier/TextLanguage$Builder;", "", ApiSince=29)>]
member this.PutLocale : Android.Icu.Util.ULocale * single -> Android.Views.TextClassifiers.TextLanguage.Builder
Parameters
- locale
- ULocale
ULocale: This value cannot be null.
- confidenceScore
- Single
float: a value from 0 (low confidence) to 1 (high confidence). 0 implies the locale does not exist for the processed text. Values greater than 1 are clamped to 1. Value is between 0.0f and 1.0f inclusive
Returns
This value cannot be null.
- Attributes
Remarks
Sets a language locale for the processed text and assigns a confidence score. If the locale has already been set, this updates it.
Android reference for android.view.textclassifier.TextLanguage.Builder.putLocale.
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.