MLKitDigitalInkRecognition Framework Reference

MLKStroke


@interface MLKStroke : NSObject

Represents a sequence of touch points between a pen (resp. touch) down and pen (resp. touch) up event.

  • List of touch points as StrokePoint.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<MLKStrokePoint *> *_Nonnull points;
  • Unavailable. Use init(points:) instead.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Initializes and returns a Stroke object using the sequence of touch points provided.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPoints:
        (nonnull NSArray<MLKStrokePoint *> *)points;