OOAssetDownloadManager Class Reference

#import <OOAssetDownloadManager.h>

+ Inheritance diagram for OOAssetDownloadManager:

Instance Methods

(nonnull instancetype) - NS_UNAVAILABLE
 
(void) - downloadDtoAsset:
 Tries to initialize a download task for the asset. More...
 
(void) - pauseDownloadDtoAsset:
 Pause a download of the asset. More...
 
(void) - resumeDownloadDtoAsset:
 Resumes a paused download. More...
 
(void) - cancelDownloadDtoAsset:
 Stops and deletes the contents of a download in progress. More...
 
(void) - deleteAssetForName:
 Deletes an asset for given name, i.e. More...
 
(BOOL) - assetExistsForName:
 Indicates if the asset exists. More...
 

Class Methods

(nonnull OOAssetDownloadManager *) + shared
 Shared instance of the OOAssetDownloadManager. More...
 

Properties

NSMutableDictionary< AVAssetDownloadTask *, OODtoAsset * > * downloadingMap
 A dictionary with all downloading assets and corresponding AVAssetDownloadTask tasks. More...
 
NSURL * homeDirectoryURL
 NSURL pointing the the home directory. More...
 

Method Documentation

- (BOOL) assetExistsForName: (nonnull NSString *)  name

Indicates if the asset exists.

Parameters
namename of the asset, i.e. embedcode or fairplay key
Returns
YES if exists, NO otherwise
- (void) cancelDownloadDtoAsset: (nonnull OODtoAsset *)  asset

Stops and deletes the contents of a download in progress.

Parameters
assetasset to cancel
- (void) deleteAssetForName: (nonnull NSString *)  name

Deletes an asset for given name, i.e.

embedcode

Parameters
namename of the asset to delete, i.e. embedcode or fairplay key
- (void) downloadDtoAsset: (nonnull OODtoAsset *)  asset

Tries to initialize a download task for the asset.

Parameters
assetasset to download
- (nonnull instancetype) NS_UNAVAILABLE
- (void) pauseDownloadDtoAsset: (nonnull OODtoAsset *)  asset

Pause a download of the asset.

Parameters
assetasset to pause
- (void) resumeDownloadDtoAsset: (nonnull OODtoAsset *)  asset

Resumes a paused download.

Parameters
assetasset to resume
+ (nonnull OOAssetDownloadManager *) shared

Shared instance of the OOAssetDownloadManager.

Returns
shared instance of the OOAssetDownloadManager

Property Documentation

- (NSMutableDictionary<AVAssetDownloadTask *, OODtoAsset *>*) downloadingMap
readwritenonatomicassign

A dictionary with all downloading assets and corresponding AVAssetDownloadTask tasks.

- (NSURL*) homeDirectoryURL
readwritenonatomicassign

NSURL pointing the the home directory.


The documentation for this class was generated from the following file: