public class QuadViewManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected QuadView |
mQuadView |
| Modifier and Type | Method and Description |
|---|---|
void |
animateQuadToDefaultPosition()
Call this method to begin quadrilateral animation to its default position.
|
void |
animateQuadToDetectionPosition(DisplayableQuadDetection quadDetection)
Call this method to begin quadrilateral animation to detected quadrilateral.
|
void |
configurationChanged(RecognizerRunnerView recognizerRunnerView,
android.content.res.Configuration newConfig)
Inform quadview of configuration change event.
|
boolean |
isAnimationInProgress()
Returns true if quad view animation is currently in progress.
|
void |
setAnimationDuration(long durationMs)
Sets the duration in miliseconds of quadview animation.
|
void |
setAnimationListener(QuadViewAnimationListener listener)
Sets a listener that will be notified when quad animation has started and finished.
|
void |
setInitialHostActivityOrientation(int hostActivityOrientation)
Changes initial host activity orientation.
|
@AnyThread public void animateQuadToDefaultPosition()
@AnyThread
public void animateQuadToDetectionPosition(@NonNull
DisplayableQuadDetection quadDetection)
quadDetection - detection to which quad will be animatedpublic void setAnimationDuration(long durationMs)
durationMs - duration in miliseconds of quadview animations.@MainThread
public void configurationChanged(@NonNull
RecognizerRunnerView recognizerRunnerView,
@NonNull
android.content.res.Configuration newConfig)
recognizerRunnerView - RecognizerRunnerView used to create the QuadView. Make sure you've called changeConfiguration on it before calling this method.newConfig - New configuration as given by onConfigurationChanged activity callback.public boolean isAnimationInProgress()
public void setAnimationListener(@Nullable
QuadViewAnimationListener listener)
public void setInitialHostActivityOrientation(int hostActivityOrientation)
hostActivityOrientation - allowed values are:
ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT