MLKitDigitalInkRecognition Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
MLKWritingArea
@interface MLKWritingArea : NSObject
Properties of the writing area.
The writing area is the area on the screen where the user can draw an ink.
-
Writing area width, in the same units as used in StrokePoint
.
Declaration
Objective-C
@property (nonatomic, readonly) float width;
-
Writing area height, in the same units as used in StrokePoint
.
Declaration
Objective-C
@property (nonatomic, readonly) float height;
-
Unavailable. Use init(width:height:)
instead.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Initializes and returns a WritingArea
with specified dimensions.
The same unit is expected for both dimensions, and must match the unit used in Ink
and related
objects.
Declaration
Objective-C
- (nonnull instancetype)initWithWidth:(float)width height:(float)height;
Parameters
width
|
Width of the writing area.
|
height
|
Height of the writing area.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["MLKWritingArea defines the screen area where users can draw ink, using width and height properties."],["Both width and height properties use the same unit as `StrokePoint` and should match the unit used in `Ink` and related objects."],["`MLKWritingArea` is initialized with specific width and height values using the designated initializer `initWithWidth:height:`."],["The default `init` method is unavailable and developers should use the designated initializer instead."]]],[]]