public final class FrameGrabberRecognizer extends Recognizer
FrameCallback
.Modifier and Type | Class and Description |
---|---|
static class |
FrameGrabberRecognizer.Result |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator |
CREATOR |
Constructor and Description |
---|
FrameGrabberRecognizer(FrameCallback frameCallback) |
Modifier and Type | Method and Description |
---|---|
FrameGrabberRecognizer |
clone()
Create a copy of the entity.
|
void |
consumeResultFrom(Entity other)
Consume result from other entity.
|
protected void |
deserializeNativeSettings(byte[] serializedSettings) |
FrameCallback |
getFrameCallback()
The
FrameCallback that will receive frames. |
protected byte[] |
serializeNativeSettings() |
void |
setFrameCallback(FrameCallback frameCallback)
The
FrameCallback that will receive frames. |
void |
setGrabFocusedFrames(boolean grabFocusedFrames)
Allow sending focused camera frames to
FrameCallback . |
void |
setGrabUnfocusedFrames(boolean grabUnfocusedFrames)
Allow sending unfocused camera frames to
FrameCallback . |
boolean |
shouldGrabFocusedFrames()
Allow sending focused camera frames to
FrameCallback . |
boolean |
shouldGrabUnfocusedFrames()
Allow sending unfocused camera frames to
FrameCallback . |
protected void |
terminateNative(long nativeContext) |
void |
writeToParcel(android.os.Parcel dest,
int i) |
getName, isExcludedFromPing, requiresAutofocus, requiresLandscapeMode
describeContents, finalize, getNativeContext, getResult, nativeGetNativeResultContext, readFromParcel
public FrameGrabberRecognizer(@NonNull FrameCallback frameCallback)
frameCallback
- The FrameCallback
that will receive frames.public void setFrameCallback(@NonNull FrameCallback frameCallback)
FrameCallback
that will receive frames.@NonNull public FrameCallback getFrameCallback()
FrameCallback
that will receive frames.public void setGrabFocusedFrames(boolean grabFocusedFrames)
FrameCallback
.public boolean shouldGrabFocusedFrames()
FrameCallback
.public void setGrabUnfocusedFrames(boolean grabUnfocusedFrames)
FrameCallback
.public boolean shouldGrabUnfocusedFrames()
FrameCallback
.protected void terminateNative(long nativeContext)
terminateNative
in class Entity
public void writeToParcel(@NonNull android.os.Parcel dest, int i)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Entity
@Nullable protected byte[] serializeNativeSettings()
serializeNativeSettings
in class Entity
protected void deserializeNativeSettings(@NonNull byte[] serializedSettings)
deserializeNativeSettings
in class Entity
@NonNull public FrameGrabberRecognizer clone()
Entity
RecognizerRunnerView
or RecognizerRunner
with the updated entity hierarchy.clone
in class Recognizer
public void consumeResultFrom(@NonNull Entity other)
Entity
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
consumeResultFrom
in class Entity
other
- Entity from which result should be consumed.