DigitalInkRecognitionModel
Stay organized with collections
Save and categorize content based on your preferences.
Represents a downloadable recognition model.
Recognition models are downloaded on the device when needed.
This object contains properties that are constant throughout the lifetime of a recognition
model.
See RecognitionContext
for the properties that depend on the ink being
recognized.
Inherited Method Summary
From class com.google.mlkit.common.model.RemoteModel
boolean |
|
int |
hashCode()
|
String
|
toString()
|
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
public boolean equals (Object o)
Returns the model identifier this object is associated with.
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 2025-08-20 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 2025-08-20 UTC."],[],[],null,["# DigitalInkRecognitionModel\n\npublic class **DigitalInkRecognitionModel** extends RemoteModel \nRepresents a downloadable recognition model.\n\nRecognition models are downloaded on the device when needed.\n\nThis object contains properties that are constant throughout the lifetime of a recognition\nmodel.\n\nSee `RecognitionContext` for the properties that depend on the ink being\nrecognized. \n\n### Nested Class Summary\n\n|-------|---|---|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| class | [DigitalInkRecognitionModel.Builder](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModel.Builder) || Builder for the [DigitalInkRecognitionModel](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModel) class. |\n\n### Public Method Summary\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [DigitalInkRecognitionModel.Builder](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModel.Builder) | [builder](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModel#builder(com.google.mlkit.vision.digitalink.recognition.DigitalInkRecognitionModelIdentifier))([DigitalInkRecognitionModelIdentifier](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModelIdentifier) modelIdentifier) Returns a new builder of [DigitalInkRecognitionModel](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModel), specifying the model identifier. |\n| boolean | [equals](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModel#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) o) |\n| [DigitalInkRecognitionModelIdentifier](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModelIdentifier) | [getModelIdentifier](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModel#getModelIdentifier())() Returns the model identifier this object is associated with. |\n| int | [hashCode](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModel#hashCode())() |\n\n### Inherited Method Summary\n\nFrom class com.google.mlkit.common.model.RemoteModel \n\n|-------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| int | hashCode() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static [DigitalInkRecognitionModel.Builder](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModel.Builder) **builder** ([DigitalInkRecognitionModelIdentifier](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModelIdentifier) modelIdentifier)\n\nReturns a new builder of [DigitalInkRecognitionModel](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModel), specifying the model identifier.\n\nExample:\n\n- DigitalInkRecognitionModelIdentifier.AUTODRAW for Autodraw shape classification\n- DigitalInkRecognitionModelIdentifier.GU for Gujarati\n\nSee [DigitalInkRecognitionModelIdentifier](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModelIdentifier) for the full list. \n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) o)\n\n#### public [DigitalInkRecognitionModelIdentifier](/android/reference/com/google/mlkit/vision/digitalink/recognition/DigitalInkRecognitionModelIdentifier) **getModelIdentifier** ()\n\nReturns the model identifier this object is associated with. \n\n#### public int **hashCode** ()"]]