OTVPersistenceManager
@interface OTVPersistenceManager : NSObject
OTVPersistenceManager is a singleton that manages all download related functionality.
It utilises OTVDownloadingAssetManager for outstanding downloads and OTVAssetsManager for
completed downloads.
-
Declaration
Objective-C
@property (nonatomic, class, readonly, strong) OTVPersistenceManager * _Nonnull shared -
Declaration
Objective-C
- (OTVPersistenceAsset * _Nullable)startDownloadWithUrlAsset:(AVURLAsset * _Nonnull)urlAsset title:(NSString * _Nonnull)title licenseDelegate:(id <OTVLicenseDelegate> _Nullable)licenseDelegate artwork:(NSData * _Nullable)artwork options:(NSDictionary<NSString *, id> * _Nullable)options SWIFT_WARN_UNUSED_RESULT; -
Return downloading and downloaded assets.
Declaration
Objective-C
- (NSArray<OTVPersistenceAsset *> *_Nullable)getDownloads; -
Pause the downloading of assigned asset \param asset the asset to be paused.
Declaration
Objective-C
- (BOOL)pauseDownloadWithAsset:(OTVPersistenceAsset *_Nonnull)asset; -
Resume the paused downloading asset \param asset the asset to be resumed.
Declaration
Objective-C
- (BOOL)resumeDownloadWithAsset:(OTVPersistenceAsset *_Nonnull)asset; -
Cancel or remove the asset \param asset the asset to be cancelled or removed.
Declaration
Objective-C
- (BOOL)deleteDownloadWithAsset:(OTVPersistenceAsset *_Nonnull)asset;
OTVPersistenceManager Class Reference