Package com.incode.welcome_sdk.listeners
Interface SelfieScanListener
-
- All Implemented Interfaces:
-
com.incode.welcome_sdk.listeners.BaseListener,com.incode.welcome_sdk.listeners.ErrorListener,com.incode.welcome_sdk.listeners.UserCancelledListener
public interface SelfieScanListener implements BaseListener
Interface for getting selfie scan result after call startSelfieScan()
-
-
Method Summary
Modifier and Type Method Description UnitonSelfieScanReady(NonUiSelfieScanController controller)Called when selfie scan controller is ready to be used. abstract UnitonSelfieScanCompleted(SelfieScanResult selfieScanResult)Called when selfie scan step is completedFor per-attempt reporting that fires after every individual capture attempt (including intermediate failures), use onSelfieScanAttemptCompleted. UnitonSelfieScanAttemptCompleted(SelfieScanResult selfieScanResult)Called after every individual selfie capture attempt, including intermediate failures such as spoof detection, lenses, mask, closed eyes, head cover, or insufficient brightness. -
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
-
onSelfieScanReady
Unit onSelfieScanReady(NonUiSelfieScanController controller)
Called when selfie scan controller is ready to be used.
- Parameters:
controller- Instance of NonUiSelfieScanController
-
onSelfieScanCompleted
abstract Unit onSelfieScanCompleted(SelfieScanResult selfieScanResult)
Called when selfie scan step is completed
For per-attempt reporting that fires after every individual capture attempt (including intermediate failures), use onSelfieScanAttemptCompleted.
- Parameters:
selfieScanResult- Result of the terminal selfie scan attempt that includes spoof confidence and path to the face image.
-
onSelfieScanAttemptCompleted
Unit onSelfieScanAttemptCompleted(SelfieScanResult selfieScanResult)
Called after every individual selfie capture attempt, including intermediate failures such as spoof detection, lenses, mask, closed eyes, head cover, or insufficient brightness.
The terminal attempt is signaled when SelfieScanResult.allAttemptsExhausted is
trueor when the attempt succeeds; for terminal-only reporting, use onSelfieScanCompleted instead.- Parameters:
selfieScanResult- Result of the individual capture attempt.
-
-
-
-