Class LegacyDocumentVerificationOverlayView
- java.lang.Object
-
- com.microblink.fragment.overlay.blinkid.legacy.documentverification.LegacyDocumentVerificationOverlayView
-
- All Implemented Interfaces:
BlinkIdOverlayView
@Deprecated public class LegacyDocumentVerificationOverlayView extends java.lang.Object implements BlinkIdOverlayView
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microblink.fragment.overlay.blinkid.BlinkIdOverlayView
BlinkIdOverlayView.ProcessingError
-
-
Constructor Summary
Constructors Constructor Description LegacyDocumentVerificationOverlayView(boolean shouldShowControlButtons, LegacyDocumentVerificationOverlayStrings strings, int style, android.view.View.OnClickListener instructionsClickListener)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
cleanup()
Deprecated.Clean up your resources here.android.view.ViewGroup
createLayout(android.app.Activity activity, RecognizerRunnerView parentView)
Deprecated.Inflate your custom layout here and add it to the parent viewTorchController
createTorchController(RecognizerRunnerView recognizerRunnerView)
Deprecated.Return properly set-up torch controller or null if torch is handled by the activity.RetryDialogStrings
getDataMismatchStrings()
Deprecated.RetryDialogStrings
getDocumentNotSupportedDialogStrings()
Deprecated.RetryDialogStrings
getRecognitionTimeoutDialogStrings()
Deprecated.RetryDialogStrings
getSidesNotMatchingDialogStrings()
Deprecated.void
onCardDetectionUpdate(DetectionStatus detectionStatus)
Deprecated.Called on any update to card detection process.void
onConfigurationChanged(int newHostScreenOrientation)
Deprecated.Called when host's screen orientation is changed.void
onDocumentClassified()
Deprecated.Called when document is successfully classified and recognition starts.void
onErrorDialogShown()
Deprecated.Called when error dialog is shown.void
onFirstSideScanStarted()
Deprecated.Called when scanning of the first side starts.void
onGlare(boolean hasGlare)
Deprecated.Called on glare detection update.void
onMovingCloserToBarcodeRequired()
Deprecated.Called when user should be instructed to move closer to barcode.void
onProcessingError(BlinkIdOverlayView.ProcessingError processingError)
Deprecated.Called when processing error, which should be displayed to the user, occurs.long
onScanSuccess()
Deprecated.Called when both sides are scanned.void
onSecondSideScanStarted()
Deprecated.Called when scanning of the second side starts.void
onTorchStateChanged(boolean torchOn)
Deprecated.Called when torch (flashlight) state is updated.void
setRecognizerSupportsClassification(boolean isClassificationSupported)
Deprecated.If true, this means that recognizer supports classification andBlinkIdOverlayView.onDocumentClassified()
will be called when the document is classified.void
setShowBackSideBarcodeInstructions(boolean shouldShow)
Deprecated.Set whether to show additional instructions when scanning back side of the document instructing user to scan the barcode.
-
-
-
Constructor Detail
-
LegacyDocumentVerificationOverlayView
public LegacyDocumentVerificationOverlayView(boolean shouldShowControlButtons, @NonNull LegacyDocumentVerificationOverlayStrings strings, @StyleRes int style, @Nullable android.view.View.OnClickListener instructionsClickListener)
Deprecated.
-
-
Method Detail
-
createLayout
public android.view.ViewGroup createLayout(@NonNull android.app.Activity activity, @NonNull RecognizerRunnerView parentView)
Deprecated.Description copied from interface:BlinkIdOverlayView
Inflate your custom layout here and add it to the parent view- Specified by:
createLayout
in interfaceBlinkIdOverlayView
- Parameters:
activity
- current activityparentView
- root view to be used as inflation parent- Returns:
- root view group of your layout
-
onConfigurationChanged
public void onConfigurationChanged(int newHostScreenOrientation)
Deprecated.Description copied from interface:BlinkIdOverlayView
Called when host's screen orientation is changed.- Specified by:
onConfigurationChanged
in interfaceBlinkIdOverlayView
- Parameters:
newHostScreenOrientation
- orientation code, possible values are: ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT, ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE and ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE
-
createTorchController
@NonNull public TorchController createTorchController(@NonNull RecognizerRunnerView recognizerRunnerView)
Deprecated.Description copied from interface:BlinkIdOverlayView
Return properly set-up torch controller or null if torch is handled by the activity.- Specified by:
createTorchController
in interfaceBlinkIdOverlayView
- Parameters:
recognizerRunnerView
- required for torch controller setup- Returns:
- torch controller
-
onFirstSideScanStarted
public void onFirstSideScanStarted()
Deprecated.Description copied from interface:BlinkIdOverlayView
Called when scanning of the first side starts.- Specified by:
onFirstSideScanStarted
in interfaceBlinkIdOverlayView
-
onSecondSideScanStarted
public void onSecondSideScanStarted()
Deprecated.Description copied from interface:BlinkIdOverlayView
Called when scanning of the second side starts.- Specified by:
onSecondSideScanStarted
in interfaceBlinkIdOverlayView
-
onMovingCloserToBarcodeRequired
public void onMovingCloserToBarcodeRequired()
Deprecated.Description copied from interface:BlinkIdOverlayView
Called when user should be instructed to move closer to barcode.- Specified by:
onMovingCloserToBarcodeRequired
in interfaceBlinkIdOverlayView
-
setRecognizerSupportsClassification
public void setRecognizerSupportsClassification(boolean isClassificationSupported)
Deprecated.Description copied from interface:BlinkIdOverlayView
If true, this means that recognizer supports classification andBlinkIdOverlayView.onDocumentClassified()
will be called when the document is classified.- Specified by:
setRecognizerSupportsClassification
in interfaceBlinkIdOverlayView
- Parameters:
isClassificationSupported
- true if classification is supported
-
onDocumentClassified
public void onDocumentClassified()
Deprecated.Description copied from interface:BlinkIdOverlayView
Called when document is successfully classified and recognition starts.- Specified by:
onDocumentClassified
in interfaceBlinkIdOverlayView
-
onCardDetectionUpdate
public void onCardDetectionUpdate(@NonNull DetectionStatus detectionStatus)
Deprecated.Description copied from interface:BlinkIdOverlayView
Called on any update to card detection process.- Specified by:
onCardDetectionUpdate
in interfaceBlinkIdOverlayView
-
onProcessingError
public void onProcessingError(@NonNull BlinkIdOverlayView.ProcessingError processingError)
Deprecated.Description copied from interface:BlinkIdOverlayView
Called when processing error, which should be displayed to the user, occurs.- Specified by:
onProcessingError
in interfaceBlinkIdOverlayView
- Parameters:
processingError
- processing error type.
-
onScanSuccess
public long onScanSuccess()
Deprecated.Description copied from interface:BlinkIdOverlayView
Called when both sides are scanned. If you wish to animate success state, return delay in milliseconds and overlay controller will wait before reporting that scanning is done.- Specified by:
onScanSuccess
in interfaceBlinkIdOverlayView
- Returns:
- delay in milliseconds
-
onErrorDialogShown
public void onErrorDialogShown()
Deprecated.Description copied from interface:BlinkIdOverlayView
Called when error dialog is shown. Make sure to stop animations here.- Specified by:
onErrorDialogShown
in interfaceBlinkIdOverlayView
-
getDocumentNotSupportedDialogStrings
@NonNull public RetryDialogStrings getDocumentNotSupportedDialogStrings()
Deprecated.- Specified by:
getDocumentNotSupportedDialogStrings
in interfaceBlinkIdOverlayView
- Returns:
- strings to be used for error dialog shown when document is not supported
-
getRecognitionTimeoutDialogStrings
@NonNull public RetryDialogStrings getRecognitionTimeoutDialogStrings()
Deprecated.- Specified by:
getRecognitionTimeoutDialogStrings
in interfaceBlinkIdOverlayView
- Returns:
- strings to be used for error dialog shown when second document side can't be recognized
-
getSidesNotMatchingDialogStrings
@NonNull public RetryDialogStrings getSidesNotMatchingDialogStrings()
Deprecated.- Specified by:
getSidesNotMatchingDialogStrings
in interfaceBlinkIdOverlayView
- Returns:
- strings to be used for error dialog shown when data from the second document side doesn't match the data from the first side
-
getDataMismatchStrings
@NonNull public RetryDialogStrings getDataMismatchStrings()
Deprecated.- Specified by:
getDataMismatchStrings
in interfaceBlinkIdOverlayView
- Returns:
- strings to be used for error dialog shown when scanned document has data mismatch
-
setShowBackSideBarcodeInstructions
public void setShowBackSideBarcodeInstructions(boolean shouldShow)
Deprecated.Description copied from interface:BlinkIdOverlayView
Set whether to show additional instructions when scanning back side of the document instructing user to scan the barcode.- Specified by:
setShowBackSideBarcodeInstructions
in interfaceBlinkIdOverlayView
- Parameters:
shouldShow
- true if barcode instructions should be shown
-
onGlare
public void onGlare(boolean hasGlare)
Deprecated.Description copied from interface:BlinkIdOverlayView
Called on glare detection update.- Specified by:
onGlare
in interfaceBlinkIdOverlayView
- Parameters:
hasGlare
- true if glare detected
-
onTorchStateChanged
public void onTorchStateChanged(boolean torchOn)
Deprecated.Description copied from interface:BlinkIdOverlayView
Called when torch (flashlight) state is updated.- Specified by:
onTorchStateChanged
in interfaceBlinkIdOverlayView
- Parameters:
torchOn
-true
if torch is turned on,false
otherwise.
-
cleanup
public void cleanup()
Deprecated.Description copied from interface:BlinkIdOverlayView
Clean up your resources here.- Specified by:
cleanup
in interfaceBlinkIdOverlayView
-
-