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 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 set } -
License duration in seconds
Declaration
Swift
public var licenseDuration: Double? { get set } -
The total size downloaded for the downloaded/downloading asset in bytes
Declaration
Swift
public var totalSizeDownloaded: UInt64 { get } -
The DRM type of the asset
Declaration
Swift
public internal(set) var drmMode: OTVPersistenceDRMType? { get } -
The OTVMediaInfo for the asset
Declaration
Swift
public internal(set) var mediaInfo: OTVMediaInfo? { get } -
The OTVPersistLicenseInfo for the asset
Declaration
Swift
public internal(set) var licenseInfo: OTVPersistLicenseInfo? { get } -
Declaration
Swift
@objc public func renewLicense(delegate: OTVLicenseDelegate, options: [String : Any]? = nil) -
The local URL to access the offline asset from
Declaration
Swift
public func offlineURL() -> URL? -
Extends
See moreOTVPersistenceAssetto define a number of values to use as keys in dictionary lookups.Declaration
Swift
public struct Keys
OTVPersistenceAsset Class Reference