Interface IdScanListener
-
- All Implemented Interfaces:
-
com.incode.welcome_sdk.listeners.BaseListener,com.incode.welcome_sdk.listeners.ErrorListener,com.incode.welcome_sdk.listeners.UserCancelledListener
public interface IdScanListener implements BaseListener
-
-
Method Summary
Modifier and Type Method Description UnitonIdScanReady(NonUiIdScanController controller)Called when the NonUiIdScanController is ready to be used. abstract UnitonIdFrontCompleted(IdScanResult frontIdScanResult)Called when the front of an ID or a Passport Photo page scan is completed. abstract UnitonIdBackCompleted(IdScanResult backIdScanResult)Called when the back of an ID scan is completed. UnitonIdFrontAttemptCompleted(IdScanResult frontIdScanResult)Called after every individual front ID or Passport capture attempt, including intermediate failures such as glare, blur, wrong document side, or spoof detection. UnitonIdBackAttemptCompleted(IdScanResult backIdScanResult)Called after every individual back ID capture attempt, including intermediate failures such as glare, blur, wrong document side, or spoof detection. -
Methods inherited from class com.incode.welcome_sdk.listeners.ErrorListener
onError -
Methods inherited from class com.incode.welcome_sdk.listeners.UserCancelledListener
onUserCancelled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onIdScanReady
Unit onIdScanReady(NonUiIdScanController controller)
Called when the NonUiIdScanController is ready to be used.
- Parameters:
controller- Instance of NonUiIdScanController
-
onIdFrontCompleted
abstract Unit onIdFrontCompleted(IdScanResult frontIdScanResult)
Called when the front of an ID or a Passport Photo page scan is completed.
For per-attempt reporting that fires after every individual capture attempt (including intermediate failures), use onIdFrontAttemptCompleted.
- Parameters:
frontIdScanResult- Result from the terminal front ID scan attempt.
-
onIdBackCompleted
abstract Unit onIdBackCompleted(IdScanResult backIdScanResult)
Called when the back of an ID scan is completed.
For per-attempt reporting that fires after every individual capture attempt (including intermediate failures), use onIdBackAttemptCompleted.
- Parameters:
backIdScanResult- Result from the terminal back ID scan attempt.
-
onIdFrontAttemptCompleted
Unit onIdFrontAttemptCompleted(IdScanResult frontIdScanResult)
Called after every individual front ID or Passport capture attempt, including intermediate failures such as glare, blur, wrong document side, or spoof detection.
The terminal attempt is signaled when IdScanResult.allAttemptsExhausted is
trueor when the attempt succeeds; for terminal-only reporting, use onIdFrontCompleted instead.- Parameters:
frontIdScanResult- Result of the individual capture attempt.
-
onIdBackAttemptCompleted
Unit onIdBackAttemptCompleted(IdScanResult backIdScanResult)
Called after every individual back ID capture attempt, including intermediate failures such as glare, blur, wrong document side, or spoof detection.
The terminal attempt is signaled when IdScanResult.allAttemptsExhausted is
trueor when the attempt succeeds; for terminal-only reporting, use onIdBackCompleted instead.- Parameters:
backIdScanResult- Result of the individual capture attempt.
-
-
-
-