Page Summary
-
MLKDigitalInkRecognitionModelrepresents a downloadable recognition model for use withDigitalInkRecognizer. -
Models are downloaded to the device and unzipped upon first use, impacting initial recognition speed.
-
This class includes immutable properties of the recognition model, while
DigitalInkRecognitionContexthandles ink-specific properties. -
You must create an instance using
initWithModelIdentifier:with a validDigitalInkRecognitionModelIdentifier.
MLKDigitalInkRecognitionModel
@interface MLKDigitalInkRecognitionModel : MLKRemoteModelRepresents a downloadable recognition model.
Recognition models are downloaded on the device when the download method is called. The
downloaded model is unzipped when DigitalInkRecognizer loads it at inference time for the
first time, which makes the first recognition a bit slower than subsequent ones.
This object contains properties that are constant throughout the lifetime of a recognition model.
See DigitalInkRecognitionContext for the properties that depend on the ink being recognized.
-
Identifier of this recognition model.
Declaration
Objective-C
@property (nonatomic, readonly) MLKDigitalInkRecognitionModelIdentifier *_Nonnull modelIdentifier; -
Not available. Use
init(modelIdentifier:)instead.Declaration
Objective-C
- (nonnull instancetype)init; -
Creates a new instance from the specified model identifier.
Declaration
Objective-C
- (nonnull instancetype)initWithModelIdentifier: (nonnull MLKDigitalInkRecognitionModelIdentifier *)modelIdentifier;Parameters
modelIdentifierA valid
DigitalInkRecognitionModelIdentifier.Return Value
A new
DigitalInkRecognitionModelinstance.