# MLKitDigitalInkRecognition Framework Reference

# MLKDigitalInkRecognitionResult


    @interface MLKDigitalInkRecognitionResult : NSObject

Object representing the output of an ink recognition.

A recognizer usually provides several recognition alternatives, because the user intent is not
always clear. For example, if the user writes a vertical line and then a circle, the recognition
alternatives could include "10", "IO", and "lo".

Alternatives are named "candidates". This object represents a set of candidates as a list of
`DigitalInkRecognitionCandidate`.

Use `DigitalInkRecognizer` to perform the recognition itself. If nothing could be recognized,
the property `candidates` will be an empty array.
- `


  ### [candidates](https://developers.google.com/ml-kit/reference/ios/mlkitdigitalinkrecognition/api/reference/Classes/MLKDigitalInkRecognitionResult#/c:objc(cs)MLKDigitalInkRecognitionResult(py)candidates)


  ` List of recognition alternatives.

  Candidates are ordered from most likely to least likely. When scores are provided, they
  are in increasing order.

  The number of candidates depends on the options used when initializing the recognizer. See
  `DigitalInkRecognitionModel` and `DigitalInkRecognizerOptions` for details.

  #### Declaration

  Objective-C

      @property (nonatomic, readonly) NSArray<https://developers.google.com/ml-kit/reference/ios/mlkitdigitalinkrecognition/api/reference/Classes/MLKDigitalInkRecognitionCandidate.html *> *_Nonnull candidates;

- `


  ### [-init](https://developers.google.com/ml-kit/reference/ios/mlkitdigitalinkrecognition/api/reference/Classes/MLKDigitalInkRecognitionResult#/c:objc(cs)MLKDigitalInkRecognitionResult(im)init)


  ` This object is only meant to be instantiated by a `DigitalInkRecognizer` object.

  #### Declaration

  Objective-C

      - (nonnull instancetype)init;