public static interface DocumentCaptureContract.OverlayView
Modifier and Type | Method and Description |
---|---|
void |
bindOverlayController(DocumentCaptureContract.OverlayController overlayController)
Bind given overlay controller to this view.
|
void |
cleanup()
Called when view will not be used anymore, here you should finish all remaining view actions
and its resources.
|
void |
clearAction()
Clears all displayed actions.
|
void |
clearDetection()
Clears all document detection information.
|
void |
createLayout(android.content.Context context,
RecognizerRunnerView parentView)
Inflate your custom layout here and add it to the parent view.
|
void |
onConfigurationChanged(RecognizerRunnerView recognizerRunnerview,
android.content.res.Configuration newConfiguration)
Called on device configuration change.
|
void |
onScanStarted()
Performs UI modifications when scanning is started.
|
void |
onTorchStateChanged(boolean torchOn)
Called when torch state is changed, when it is turned off or on.
|
void |
onTorchSupportStatusAvailable(boolean cameraSupportsTorch)
Called when camera device torch support status is available.
|
void |
showAction(DocumentCaptureAction action)
Displays some action message the to user.
|
void |
showDetection(DisplayableQuadDetection quadDetection)
Displays given detection to the user.
|
void |
showScanSuccess(DocumentCaptureContract.UiUpdateListener uiUpdateListener)
Displays the scan success.
|
void bindOverlayController(DocumentCaptureContract.OverlayController overlayController)
overlayController
- overlay controller that should be used for view actions.@NonNull void createLayout(@NonNull android.content.Context context, @NonNull RecognizerRunnerView parentView)
context
- application contextparentView
- root view to be used as inflation parentvoid onConfigurationChanged(RecognizerRunnerView recognizerRunnerview, android.content.res.Configuration newConfiguration)
void onTorchSupportStatusAvailable(boolean cameraSupportsTorch)
cameraSupportsTorch
- whether used camera supports torchvoid onTorchStateChanged(boolean torchOn)
torchOn
- true
if torch is turned on, false
if torch is turned off.void clearDetection()
void showDetection(DisplayableQuadDetection quadDetection)
quadDetection
- detection location with status.void onScanStarted()
void showScanSuccess(DocumentCaptureContract.UiUpdateListener uiUpdateListener)
uiUpdateListener
- listener that will be notified when all UI actions are finished
(UI changes, animations...).void showAction(DocumentCaptureAction action)
action
- action that should be displayed.void clearAction()
void cleanup()