ITextClassifier.DetectLanguage(TextLanguage+Request) 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.
Detects the language of the text in the given request.
[Android.Runtime.Register("detectLanguage", "(Landroid/view/textclassifier/TextLanguage$Request;)Landroid/view/textclassifier/TextLanguage;", "GetDetectLanguage_Landroid_view_textclassifier_TextLanguage_Request_Handler:Android.Views.TextClassifiers.ITextClassifier, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)]
public virtual Android.Views.TextClassifiers.TextLanguage DetectLanguage(Android.Views.TextClassifiers.TextLanguage.Request request);
[<Android.Runtime.Register("detectLanguage", "(Landroid/view/textclassifier/TextLanguage$Request;)Landroid/view/textclassifier/TextLanguage;", "GetDetectLanguage_Landroid_view_textclassifier_TextLanguage_Request_Handler:Android.Views.TextClassifiers.ITextClassifier, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)>]
abstract member DetectLanguage : Android.Views.TextClassifiers.TextLanguage.Request -> Android.Views.TextClassifiers.TextLanguage
override this.DetectLanguage : Android.Views.TextClassifiers.TextLanguage.Request -> Android.Views.TextClassifiers.TextLanguage
Parameters
- request
- TextLanguage.Request
TextLanguage.Request: the TextLanguage request. This value cannot be null.
Returns
the TextLanguage result. This value cannot be null.
- Attributes
Remarks
Detects the language of the text in the given request. NOTE: Call on a worker thread. NOTE: If a TextClassifier has been destroyed, calls to this method should throw an IllegalStateException. See isDestroyed(). This method may take several seconds to complete, so it should only be called from a worker thread.
Android reference for android.view.textclassifier.TextClassifier.detectLanguage.
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.