Interface Archivist.ArchiveListener

  • Enclosing class:
    Archivist

    public static interface Archivist.ArchiveListener
    An interface that can be used to display progress to the user as an archive is being created, and allow them to cancel the process if desired.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean continueCreating​(int tracksCompleted, int tracksTotal)
      Called once we determine how many tracks need to be archived, and as each one is completed, so that progress can be displayed; the process can be canceled by returning false.
    • Method Detail

      • continueCreating

        boolean continueCreating​(int tracksCompleted,
                                 int tracksTotal)
        Called once we determine how many tracks need to be archived, and as each one is completed, so that progress can be displayed; the process can be canceled by returning false.
        Parameters:
        tracksCompleted - how many tracks have been added to the archive
        tracksTotal - how many tracks are present in the media export being archived
        Returns:
        true to continue archiving tracks, or false to cancel the process and delete the archive.