MediaDownloader

@objcMembers
@objc(GSMediaDownloader)
public class MediaDownloader : NSObject

Media downloader, containing info on a download medias task

Seealso

MediaStore.newDownloader
  • Total number of media to download.

    Declaration

    Swift

    public let totalMediaCount: Int
  • Number of already downloaded media.

    Declaration

    Swift

    public let currentMediaCount: Int
  • Total number of resources to download.

    Declaration

    Swift

    public let totalResourceCount: Int
  • Number of already downloaded resources.

    Declaration

    Swift

    public let currentResourceCount: Int
  • Current file download between 0.0 (0%) and 1.0 (100%).

    Declaration

    Swift

    public let currentFileProgress: Float
  • Total download progress between 0.0 (0%) and 1.0 (100%).

    Declaration

    Swift

    public let totalProgress: Float
  • Download progress status.

    Declaration

    Swift

    public let status: MediaTaskStatus
  • Url of downloaded file (if exists) when status is fileDownloaded, nil in other cases.

    Declaration

    Swift

    public let fileUrl: URL?
  • Current downloading media.

    Declaration

    Swift

    public let currentMedia: MediaItem?