MLKitDigitalInkRecognition 框架参考

MLKWritingArea


@interface MLKWritingArea : NSObject

书写区域的属性。

书写区域是屏幕上可供用户书写的区域。

  • 书写区域宽度(单位与 StrokePoint 中相同)。

    声明

    Objective-C

    @property (nonatomic, readonly) float width;
  • 书写区域高度(采用与 StrokePoint 相同的单位)。

    声明

    Objective-C

    @property (nonatomic, readonly) float height;
  • 不可用。请改用 init(width:height:)

    声明

    Objective-C

    - (nonnull instancetype)init;
  • 初始化并返回具有指定维度的 WritingArea

    这两个维度的单位应当相同,并且必须与 Ink 和相关对象中使用的单位一致。

    声明

    Objective-C

    - (nonnull instancetype)initWithWidth:(float)width height:(float)height;

    参数

    width

    书写区域的宽度。

    height

    书写区域的高度。