OpenTV Player SDK For iOS  version 2.30.0
DownloadManager.h
Go to the documentation of this file.
1 
13 /*
14  * @ingroup download2go
15  */
16 
17 #import <Foundation/Foundation.h>
18 #import "Download.h"
19 
20 @protocol INMPDownloadListener;
21 
59 @interface NMPDownloadManager : NSObject
60 
69 - (instancetype)initWithRefreshMetadata:(BOOL)xEnabled;
70 
84 - (BOOL)registerDownloadListener:(id<INMPDownloadListener>)xListener;
85 
96 - (BOOL)unregisterDownloadListener:(id<INMPDownloadListener>)xListener;
97 
108 - (NSString *)registerDownload:(NSString* )xUrl;
109 
117 - (NSArray* )getDownloads;
118 
129 - (NMPDownload* )getDownloadByUUID:(NSString* )xUUID;
130 
141 - (NSArray* )getDownloadByContentId:(NSString* )xContentId;
142 
156 - (BOOL)removeDownload:(NSString* )xUUID;
157 
170 - (BOOL)startDownload:(NSString* )xUUID bitrate:(unsigned int)xBitrate;
171 
183 - (BOOL)resumeDownload:(NSString* )xUUID;
184 
196 - (BOOL)pauseDownload:(NSString* )xUUID;
197 
208 - (NSString *)getPrivateMetadata:(NSString *)xUUID;
209 
221 - (void)setPrivateMetadata:(NSString *)xMetadata withUUID:(NSString *)xUUID;
222 
237 - (BOOL)refreshDownload:(NSString* )xUUID;
238 
239 @end
240 
241 
This class offers the downloading and the storage management of adaptive streaming assets.
NSArray * getDownloads()
Returns all downloads currently registered in the download manager.
INMPDownloadListener provides various notifications for the client application to track changes in on...
This class aggregates all the information pertaining to the download of a media asset.
Definition: Download.h:115
Created on 12/08/2014.