MLKitDigitalInkRecognition Framework Reference

  • Represents a downloadable recognition model that can be used for digital ink recognition.

  • The model is downloaded when the download method is called and unzipped when the recognizer loads it for the first time.

  • This object holds properties that remain constant throughout the model's lifetime, while ink-dependent properties are found in DigitalInkRecognitionContext.

  • It is initialized using a DigitalInkRecognitionModelIdentifier and its properties can be accessed using its modelIdentifier property.

DigitalInkRecognitionModel

class DigitalInkRecognitionModel : RemoteModel

Represents 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.