public abstract class Entity
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Entity.Result |
Modifier | Constructor and Description |
---|---|
protected |
Entity(long nativeEntity,
Entity.Result result) |
protected |
Entity(long nativeEntity,
Entity.Result result,
android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
abstract Entity |
clone()
Create a copy of the entity.
|
abstract void |
consumeResultFrom(Entity other)
Consume result from other entity.
|
int |
describeContents() |
protected abstract void |
deserializeNativeSettings(byte[] serializedSettings) |
protected void |
finalize() |
long |
getNativeContext() |
Entity.Result |
getResult()
Returns the last result of the entity.
|
protected static long |
nativeGetNativeResultContext(long nativeContext) |
protected void |
readFromParcel(android.os.Parcel in) |
protected abstract byte[] |
serializeNativeSettings() |
protected abstract void |
terminateNative(long nativeContext) |
void |
writeToParcel(android.os.Parcel dest,
int i) |
protected Entity(long nativeEntity, @NonNull Entity.Result result)
protected Entity(long nativeEntity, @NonNull Entity.Result result, @NonNull android.os.Parcel in)
protected static long nativeGetNativeResultContext(long nativeContext)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public int describeContents()
describeContents
in interface android.os.Parcelable
public final long getNativeContext()
protected abstract void terminateNative(long nativeContext)
@Nullable protected abstract byte[] serializeNativeSettings()
protected abstract void deserializeNativeSettings(@NonNull byte[] serializedSettings)
@NonNull public abstract Entity clone()
RecognizerRunnerView
or RecognizerRunner
with the updated entity hierarchy.clone
in class java.lang.Object
public abstract void consumeResultFrom(@NonNull Entity other)
com.microblink.blinkinput.entities.recognizers.RecognizerBundle#loadFromIntent(Intent)
and similar methods to replace the result content of the saved entities with results that
have arrived over Intent
other
- Entity from which result should be consumed.@CallSuper public void writeToParcel(@NonNull android.os.Parcel dest, int i)
writeToParcel
in interface android.os.Parcelable
@CallSuper protected void readFromParcel(@NonNull android.os.Parcel in)
@NonNull public final Entity.Result getResult()