StationDownloadDelegate Protocol Reference

Conforms to NSObject
Declared in AdaptrAudioPlayer.h

Overview

When a station download request is posted this delegate is required to track the progress and the completion of the download.

– stationDownloadProgress:pendingCount:failedCount:totalCount: required method

This method is called once, at the start of a station download, and then again after every file in the station is either fully downloaded or aborted.

- (void)stationDownloadProgress:(nonnull Station *)station pendingCount:(int)pendingCount failedCount:(int)failedCount totalCount:(int)totalCount

Parameters

station

The station that is being downloaded

pendingCount

the number of downloads remaining to be downloaded. The last call to this method will have pendingCount == 0

failedCount

the number of download attempts that failed

totalCount

the total number of files that will be downloaded

Discussion

The first (and possibly final) call to this method will have 0 failed counts and pending and total will be the number of files that will be downloaded for the station.

The final call to this method will have a pendingCount value of 0

Declared In

AdaptrAudioPlayer.h