MLKitDigitalInkRecognition Framework Reference

  • DigitalInkRecognizerOptions define the behavior of a DigitalInkRecognizer, such as the recognition language and maximum number of results.

  • The model property specifies the type of recognizer, determining factors like the recognition language.

  • maxResultCount limits the number of recognition results returned, with a default of 10 and a minimum of 1.

  • You create a DigitalInkRecognizerOptions instance using the init(model:) initializer, providing the desired recognition model.

DigitalInkRecognizerOptions

class DigitalInkRecognizerOptions : NSObject

Options defining the behavior of a DigitalInkRecognizer.

  • Model to be used for recognition.

    Declaration

    Swift

    var model: MLKDigitalInkRecognitionModel { get }
  • Maximum number of recognition results.

    The recognizer will return at most this number of results. Default value is 10. Minimum value is 1.

    Declaration

    Swift

    var maxResultCount: Int32 { get set }
  • Unavailable, use initWithModel instead.

  • Creates a DigitalInkRecognizerOptions

    Declaration

    Swift

    init(model: MLKDigitalInkRecognitionModel)

    Parameters

    model

    Type of recognizer. This is for example how the recognition language is specified. See DigitalInkRecognitionModel for details.