AI-generated Key Takeaways
-
MLKDigitalInkRecognizerOptions
defines the behavior of aDigitalInkRecognizer
, including the model used and the maximum number of results. -
The
model
property specifies the type of recognizer, such as the language for recognition. -
maxResultCount
determines the maximum number of recognition results returned, with a default of 10 and a minimum of 1. -
Instances of
MLKDigitalInkRecognizerOptions
should be created usinginitWithModel
, providing the desired recognition model.
MLKDigitalInkRecognizerOptions
@interface MLKDigitalInkRecognizerOptions : NSObject
Options defining the behavior of a DigitalInkRecognizer
.
-
Model to be used for recognition.
Declaration
Objective-C
@property (nonatomic, readonly) MLKDigitalInkRecognitionModel *_Nonnull model;
-
Maximum number of recognition results.
The recognizer will return at most this number of results. Default value is 10. Minimum value is 1.
Declaration
Objective-C
@property (nonatomic) int maxResultCount;
-
Unavailable, use
initWithModel
instead.Declaration
Objective-C
- (nonnull instancetype)init;
-
Creates a
DigitalInkRecognizerOptions
Declaration
Objective-C
- (nonnull instancetype)initWithModel: (nonnull MLKDigitalInkRecognitionModel *)model;
Parameters
model
Type of recognizer. This is for example how the recognition language is specified. See
DigitalInkRecognitionModel
for details.