public abstract class Recognizer extends Entity
Modifier and Type | Class and Description |
---|---|
static class |
Recognizer.Result |
Modifier | Constructor and Description |
---|---|
protected |
Recognizer(long nativeRecognizer,
Recognizer.Result concreteResult) |
protected |
Recognizer(long nativeRecognizer,
Recognizer.Result concreteResult,
android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
abstract Recognizer |
clone()
Create a copy of the entity.
|
java.lang.String |
getName()
Returns unique name of this recognizer type.
|
boolean |
isExcludedFromPing()
Returns true if this recognizer should be excluded from reporting its scan success to ping server.
|
boolean |
requiresAutofocus()
Returns true if this recognizer requires camera with autofocus.
|
boolean |
requiresLandscapeMode()
Returns true if this recognizer works only in landscape mode.
|
consumeResultFrom, describeContents, deserializeNativeSettings, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcel, serializeNativeSettings, terminateNative, writeToParcel
protected Recognizer(long nativeRecognizer, Recognizer.Result concreteResult)
protected Recognizer(long nativeRecognizer, Recognizer.Result concreteResult, android.os.Parcel in)
public boolean requiresAutofocus()
@NonNull public abstract Recognizer clone()
Entity
RecognizerRunnerView
or RecognizerRunner
with the updated entity hierarchy.public boolean requiresLandscapeMode()
public boolean isExcludedFromPing()
public java.lang.String getName()