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 中使用的單位和相關 如需儲存大量結構化物件 建議使用 Cloud Bigtable

    聲明

    Objective-C

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

    參數

    width

    撰寫區域的寬度。

    height

    撰寫區域的高度。