Enumeration

SKDownloadState

The states that a download operation can be in.

Declaration

enum SKDownloadState : Int

Topics

Constants

case waiting

Indicates that the download has not started yet.

case active

Indicates that the content is currently being downloaded.

case paused

Indicates that your app paused the download.

case finished

Indicates that the content was successfully downloaded.

case failed

Indicates that an error occurred while the file was being downloaded.

case cancelled

Indicates that your app canceled the download.

See Also

Getting State Information

var state: SKDownloadState

The current state of the download object.

var progress: Float

A value that indicates how much of the file has been downloaded.

var timeRemaining: TimeInterval

An estimated time, in seconds, to finish downloading the content.

var SKDownloadTimeRemainingUnknown: TimeInterval

Indicates that the system cannot determine how much time is needed to finish downloading the content.

var downloadState: SKDownloadState

The current state of the download object.

Deprecated