Package com.appliedrec.verid.ui2
Class DefaultSessionFailureDialogFactory
- java.lang.Object
-
- com.appliedrec.verid.ui2.DefaultSessionFailureDialogFactory
-
- All Implemented Interfaces:
SessionFailureDialogFactory
public class DefaultSessionFailureDialogFactory extends java.lang.Object implements SessionFailureDialogFactory
Ver-ID's default implementation of thesession failure dialog factory
- Since:
- 2.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.appliedrec.verid.ui2.SessionFailureDialogFactory
SessionFailureDialogFactory.OnDismissAction
-
-
Constructor Summary
Constructors Constructor Description DefaultSessionFailureDialogFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description androidx.appcompat.app.AlertDialog
makeDialog(android.content.Context context, androidx.core.util.Consumer<SessionFailureDialogFactory.OnDismissAction> onDismissListener, VerIDSessionException exception, IStringTranslator stringTranslator)
Make a dialog that will be displayed when a Ver-ID session fails but the session's maximum retry count hasn't been reached.
-
-
-
Method Detail
-
makeDialog
public androidx.appcompat.app.AlertDialog makeDialog(@NonNull android.content.Context context, @NonNull androidx.core.util.Consumer<SessionFailureDialogFactory.OnDismissAction> onDismissListener, @NonNull VerIDSessionException exception, @NonNull IStringTranslator stringTranslator)
Description copied from interface:SessionFailureDialogFactory
Make a dialog that will be displayed when a Ver-ID session fails but the session's maximum retry count hasn't been reached.- Specified by:
makeDialog
in interfaceSessionFailureDialogFactory
- Parameters:
context
- Context in which the dialog will be createdonDismissListener
- Listener that must be called when the dialog is dismissedexception
- Session exception that triggered the session to display the dialogstringTranslator
- Translator instance or null to use the current locale for string translations- Returns:
AlertDialog
or null if the session should be let to fail instead of showing the dialog
-
-