Interface LibraryBatchAction.EachSongProcessor

  • Enclosing class:
    LibraryBatchAction

    public static interface LibraryBatchAction.EachSongProcessor
    Processor that is notified of start, each song and finish of the batch process.
    • Method Detail

      • startProcessing

        void startProcessing​(int count)
        Called once before processing starts.
        Parameters:
        count - number of songs in the library
      • process

        void process​(AudioSong song,
                     int index)
              throws Exception
        Called for each song.
        Parameters:
        song - song
        index - index
        Throws:
        Exception - exception
      • finishProcessing

        void finishProcessing()
                       throws Exception
        Called once all songs were processed.
        Throws:
        Exception - exception
      • getProgressDialogMessage

        String getProgressDialogMessage​(AudioSong song)
        Message to be shown in progress dialog.
        Parameters:
        song - current song
        Returns:
        message
      • getProgressDialogTitle

        String getProgressDialogTitle()
        Title for progress dialog.
        Returns:
        title