DownloadState

@objc public enum DownloadState: Int

The state of download task in SDEDownloadManager.

case notInList: The URL which you query is not in the download manager. I set this value to make the framework be compatible with Objective-C. Because Int? can’t be presented in Objective-C.

case pending: Not downloading and it’s sure that task has no resume data.

case downloading: Downloading.

case paused: Download is paused.

case stopped: Not downloading and it’s sure that task has resume data to continue download.

case finished: File is downloaded successfully.

  • The URL which you query is not in the download manager. I set this value to make the framework be compatible with Objective-C. Because Int? can’t be presented in Objective-C.

    Declaration

    Swift

    case notInList = -1
  • Not downloading and it’s sure that task has no resume data.

    Declaration

    Swift

    case pending = 0
  • Downloading.

    Declaration

    Swift

    case downloading
  • Download is paused.

    Declaration

    Swift

    case paused
  • Not downloading and it’s sure that task has resume data to continue download.

    Declaration

    Swift

    case stopped
  • File is downloaded successfully.

    Declaration

    Swift

    case finished
  • State description.

    Declaration

    Swift

    public var description: String