Interface SessionFailureDialogFactory

  • All Known Implementing Classes:
    DefaultSessionFailureDialogFactory

    public interface SessionFailureDialogFactory
    Factory interface for creating a session failure dialog
    Since:
    2.0.0
    • 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 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
        Since:
        2.0.0