TextClassificationHint Constructors
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.
Overloads
| Name | Description |
|---|---|
| TextClassificationHint(TextClassification+Request, String) |
Creates a hint carrying a classification request and its session identifier. |
| TextClassificationHint(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
TextClassificationHint(TextClassification+Request, String)
Creates a hint carrying a classification request and its session identifier.
[Android.Runtime.Register(".ctor", "(Landroid/view/textclassifier/TextClassification$Request;Ljava/lang/String;)V", "", ApiSince=37)]
public TextClassificationHint(Android.Views.TextClassifiers.TextClassification.Request textClassificationRequest, string textClassificationSessionId);
[<Android.Runtime.Register(".ctor", "(Landroid/view/textclassifier/TextClassification$Request;Ljava/lang/String;)V", "", ApiSince=37)>]
new Android.App.PersonalContext.Hint.TextClassificationHint : Android.Views.TextClassifiers.TextClassification.Request * string -> Android.App.PersonalContext.Hint.TextClassificationHint
Parameters
- textClassificationRequest
- TextClassification.Request
The non-null classification request for the selected text.
- textClassificationSessionId
- String
The non-null identifier of the originating classification session.
- Attributes
Remarks
Construction records the request and session identifier; it does not run the classification request.
Applies to
TextClassificationHint(IntPtr, JniHandleOwnership)
Creates a managed instance that represents an existing Java object.
protected TextClassificationHint(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.PersonalContext.Hint.TextClassificationHint : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.PersonalContext.Hint.TextClassificationHint
Parameters
- javaReference
-
IntPtr
nativeint
A JNI reference to the Java object.
- transfer
- JniHandleOwnership
Specifies whether ownership of the JNI reference transfers to this instance.
Remarks
The runtime calls this constructor to create a managed representation of an existing Java object.