Class DefaultSessionFailureDialogFactory

    • Constructor Detail

      • DefaultSessionFailureDialogFactory

        public DefaultSessionFailureDialogFactory()
    • 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 interface SessionFailureDialogFactory
        Parameters:
        context - Context in which the dialog will be created
        onDismissListener - Listener that must be called when the dialog is dismissed
        exception - Session exception that triggered the session to display the dialog
        stringTranslator - 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