public interface MetadataCacheCreationListener
The listener interface for receiving updates on the progress of creating a metadata cache file.
Classes that are interested in displaying a progress bar during the (potentially lengthy) process, and allowing the user to cancel it, can implement this interface.
The listener object created from that class is then passed toMetadataFinder.createMetadataCache(SlotReference, int, File, MetadataCacheCreationListener)
in order to be able to display progress during the process of creating the cache file. As each track is added
to the cache, cacheCreationContinuing(TrackMetadata, int, int) is called, with the most recent track
added, the number of tracks that have been added so far, and the total that need to be added. If it returns
false, the creation of the cache file will be canceled.| Modifier and Type | Method and Description |
|---|---|
boolean |
cacheCreationContinuing(TrackMetadata lastTrackAdded,
int tracksAdded,
int totalTracksToAdd)
Called to inform the listener that another track has been added to the metadata cache file being created.
|
boolean cacheCreationContinuing(TrackMetadata lastTrackAdded, int tracksAdded, int totalTracksToAdd)
lastTrackAdded - the most recent track that has been added to the metadata cache filetracksAdded - the number of tracks that have been added to the cache so fartotalTracksToAdd - the total number of tracks that need to be added to the cachetrue if creation of the cache should continue, false if it should be abortedCopyright © 2016–2018 Deep Symmetry, LLC. All rights reserved.