OTVPersistenceAsset

public class OTVPersistenceAsset : NSObject

Downloads are represented by the objects of the class OTVPersistenceAsset. They have a OTVDownloadState to reflect their lifecycle.

  • Unique identifier for the asset

    Declaration

    Swift

    public private(set) var uuid: String { get }
  • Title of the asset

    Declaration

    Swift

    public internal(set) var title: String { get }
  • url

    URL of the asset

    Declaration

    Swift

    public internal(set) var url: String { get }
  • Progress of the asset download

    Declaration

    Swift

    public internal(set) var percentComplete: Double { get }
  • Error description

    Declaration

    Swift

    public internal(set) var error: String? { get }
  • Current state of the asset

    Declaration

    Swift

    public internal(set) var state: OTVDownloadState { get }
  • The asset ID

    Declaration

    Swift

    public internal(set) var identifier: String? { get }
  • The DRM type of the asset

    Declaration

    Swift

    public internal(set) var drmMode: OTVPersistenceDRMType? { get }
  • The local URL to access the offline asset from

    Declaration

    Swift

    public func offlineURL() -> URL?
  • Extends OTVPersistenceAsset to define a number of values to use as keys in dictionary lookups.

    See more

    Declaration

    Swift

    public struct Keys