StationDownloadListener

fun interface StationDownloadListener

This interface is used to provide download progress notifications when using the downloadAndSync method to download offline music for playback.

Functions

onDownloadProgress
Link copied to clipboard
abstract fun onDownloadProgress(station: Station, totalDownloads: Int, pendingDownloads: Int, interruptedDownloads: Int)

This method is called initially to indicate that file downloading has begun, and then subsequently to indicate file download progress. The final call to this method will have pendingDownloads set to 0.