Package com.appliedrec.verid.ui2
Interface VerIDSessionDelegate
-
- All Superinterfaces:
VerIDSessionInViewDelegate
public interface VerIDSessionDelegate extends VerIDSessionInViewDelegate
Ver-ID session delegate- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SessionFailureDialogFactory
createSessionFailureDialogFactory(IVerIDSession<?> session)
default <V extends android.view.View & ISessionView>
java.util.function.Function<android.content.Context,V>createSessionViewFactory(IVerIDSession<?> session)
default <A extends android.app.Activity & ISessionActivity>
java.lang.Class<A>getSessionActivityClass(IVerIDSession<?> session)
default <A extends android.app.Activity & ISessionActivity>
java.lang.Class<A>getSessionResultActivityClass(IVerIDSession<?> session, VerIDSessionResult result)
default void
onSessionCanceled(IVerIDSession<?> session)
Called when session is canceled by the userdefault boolean
shouldRetrySessionAfterFailure(IVerIDSession<?> session, VerIDSessionException exception)
default boolean
shouldSessionDisplayResult(IVerIDSession<?> session, VerIDSessionResult result)
Called to see whether the session should display the session result to the user-
Methods inherited from interface com.appliedrec.verid.ui2.VerIDSessionInViewDelegate
createImageIteratorFactory, createSessionFunctions, getCapturedImageMinimumArea, getSessionCameraLocation, onSessionFinished, shouldSessionRecordVideo, shouldSessionSpeakPrompts
-
-
-
-
Method Detail
-
onSessionCanceled
default void onSessionCanceled(@NonNull IVerIDSession<?> session)
Called when session is canceled by the user- Parameters:
session
- Session that was canceled- Since:
- 2.0.0
-
shouldSessionDisplayResult
default boolean shouldSessionDisplayResult(@NonNull IVerIDSession<?> session, @NonNull VerIDSessionResult result)
Called to see whether the session should display the session result to the user- Parameters:
session
- Sessionresult
- Result to be displayed- Returns:
- true to let the session display its result to the user or false to finish the session without displaying the result to the user
- Since:
- 2.0.0
-
createSessionViewFactory
@NonNull default <V extends android.view.View & ISessionView> java.util.function.Function<android.content.Context,V> createSessionViewFactory(@NonNull IVerIDSession<?> session)
-
getSessionActivityClass
@NonNull default <A extends android.app.Activity & ISessionActivity> java.lang.Class<A> getSessionActivityClass(@NonNull IVerIDSession<?> session)
-
getSessionResultActivityClass
@NonNull default <A extends android.app.Activity & ISessionActivity> java.lang.Class<A> getSessionResultActivityClass(@NonNull IVerIDSession<?> session, @NonNull VerIDSessionResult result)
-
createSessionFailureDialogFactory
@NonNull default SessionFailureDialogFactory createSessionFailureDialogFactory(@NonNull IVerIDSession<?> session)
-
shouldRetrySessionAfterFailure
default boolean shouldRetrySessionAfterFailure(@NonNull IVerIDSession<?> session, @NonNull VerIDSessionException exception)
-
-