MLKitDigitalInkRecognition Framework Reference

  • MLKInk represents user input as a collection of strokes for handwriting recognition.

  • It provides access to the strokes through the strokes property.

  • MLKInk can be initialized using an array of MLKStroke objects.

  • The default init method is unavailable; use init(points:) or init(strokes:) instead.

MLKInk


@interface MLKInk : NSObject

Represents the user input as a collection of Stroke and serves as input for the handwriting recognition task.

  • List of strokes composing the ink.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<MLKStroke *> *_Nonnull strokes;
  • Unavailable, use init(points:) or init(strokes:) instead.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Initializes and returns an Ink object using the sequence of strokes provided.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithStrokes:(nonnull NSArray<MLKStroke *> *)strokes;