MLKitDigitalInkRecognition Framework Reference

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

  • It is initialized using an array of MLKStroke objects representing individual strokes.

  • The strokes property provides access to the list of strokes composing the ink.

  • Direct initialization with init() is unavailable; use init(strokes:) instead.

Ink

class Ink : 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

    Swift

    var strokes: [Stroke] { get }
  • Unavailable, use init(points:) or init(strokes:) instead.

  • Initializes and returns an Ink object using the sequence of strokes provided.

    Declaration

    Swift

    init(strokes: [Stroke])