Jaa


IInkRecognizerContainer.RecognizeAsync Method

Definition

Performs handwriting recognition on one or more InkStroke objects.

public:
 IAsyncOperation<IVectorView<InkRecognitionResult ^> ^> ^ RecognizeAsync(InkStrokeContainer ^ strokeCollection, InkRecognitionTarget recognitionTarget);
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<InkRecognitionResult>> RecognizeAsync(InkStrokeContainer const& strokeCollection, InkRecognitionTarget const& recognitionTarget);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<InkRecognitionResult>> RecognizeAsync(InkStrokeContainer strokeCollection, InkRecognitionTarget recognitionTarget);
function recognizeAsync(strokeCollection, recognitionTarget)
Public Function RecognizeAsync (strokeCollection As InkStrokeContainer, recognitionTarget As InkRecognitionTarget) As IAsyncOperation(Of IReadOnlyList(Of InkRecognitionResult))

Parameters

strokeCollection
InkStrokeContainer

The set of strokes on which recognition is performed.

recognitionTarget
InkRecognitionTarget

One of the values from the InkRecognitionTarget enumeration.

Returns

The results of the recognition as a collection of InkRecognitionResult objects.Each item in the collection represents a written word. For example, the string "this is a test" contains four words that are stored as a collection of four items.

Attributes

Remarks

Because RecognizeAsync does not automatically update the existing recognition results stored in the InkManager, typically UpdateRecognitionResults is called after RecognizeAsync has completed.

Applies to

See also