Package com.appliedrec.verid.ui2
Interface SessionFailureDialogFactory
-
- All Known Implementing Classes:
DefaultSessionFailureDialogFactory
public interface SessionFailureDialogFactory
Factory interface for creating a session failure dialog- Since:
- 2.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SessionFailureDialogFactory.OnDismissAction
-
Method Summary
All Methods Instance Methods Abstract 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
@Nullable androidx.appcompat.app.AlertDialog makeDialog(@NonNull android.content.Context context, @NonNull androidx.core.util.Consumer<SessionFailureDialogFactory.OnDismissAction> onDismissListener, @NonNull VerIDSessionException exception, @Nullable 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.- 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- Since:
- 2.0.0
-
-