OOAssetDownloadManager Class Reference
#import <OOAssetDownloadManager.h>

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
-
name name 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
-
asset asset to cancel
- (void) deleteAssetForName: | (nonnull NSString *) | name |
Deletes an asset for given name, i.e.
embedcode
- Parameters
-
name name 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
-
asset asset to download
- (nonnull instancetype) NS_UNAVAILABLE |
- (void) pauseDownloadDtoAsset: | (nonnull OODtoAsset *) | asset |
Pause a download of the asset.
- Parameters
-
asset asset to pause
- (void) resumeDownloadDtoAsset: | (nonnull OODtoAsset *) | asset |
Resumes a paused download.
- Parameters
-
asset asset to resume
+ (nonnull OOAssetDownloadManager *) shared |
Shared instance of the OOAssetDownloadManager.
- Returns
- shared instance of the OOAssetDownloadManager
Property Documentation
|
readwritenonatomicassign |
A dictionary with all downloading assets and corresponding AVAssetDownloadTask tasks.
|
readwritenonatomicassign |
NSURL pointing the the home directory.
The documentation for this class was generated from the following file: