My Project

- 메인 페이지
- 클래스
- 파일들

- 파일 목록
- 파일 멤버

KollusStorage.h
이 파일의 문서화 페이지로 가기
1 //
2 // KollusStorage.h
3 // KollusSDK
4 //
5 // Created by Franky.Jung on 2014. 11. 28..
6 // Copyright (c) 2014년 Catenoid. All rights reserved.
7 //
8 #import <AVKit/AVKit.h>
9 #import "KollusSDK.h"
10 #import "KollusStorageDelegate.h"
11
12 @class KollusContent;
13
14 @interface KollusStorage : NSObject
15
17 @property (nonatomic, weak) id<KollusStorageDelegate> delegate;
19 @property (nonatomic, copy, readonly) NSString *applicationVersion;
21 @property (nonatomic, copy, readonly) NSString *applicationDeviceID;
22
24 @property (nonatomic, copy) NSString *applicationKey;
26 @property (nonatomic, copy) NSString *applicationBundleID;
28 @property (nonatomic, copy) NSString *keychainGroup;
30 @property (nonatomic, copy) NSDate *applicationExpireDate;
31
33 @property (nonatomic, unsafe_unretained, readonly) long long storageSize;
35 @property (nonatomic, unsafe_unretained, readonly) long long cacheDataSize;
36
38 @property (nonatomic) NSInteger serverPort;
39
41 @property (nonatomic, copy) NSString *extraDrmParam;
42
44 @property (nonatomic, copy, readonly) NSString *appUserAgent;
46 @property (nonatomic, copy, readonly) NSString *deviceType;
47
48
56 - (BOOL)startStorage:(NSError**)error;
57
65 - (BOOL)startStorageWithFirst:(BOOL)first error:(NSError**)error;
66
75 - (BOOL)startStorageWithCheck:(NSError**)error;
76
84 - (BOOL)startStorageWithNewPlayerID:(NSError**)error;
85
92 - (NSString *)loadContentURL:(NSString *)URL error:(NSError**)error;
93
100 - (NSString*)checkContentURL:(NSString *)URL error:(NSError **)error;
101
108 - (BOOL)downloadContent:(NSString *)mediaContentKey error:(NSError **)error;
109
110
118 - (BOOL)removeContent:(NSString *)mediaContentKey error:(NSError **)error;
119
120
127 - (BOOL)removeCacheWithError:(NSError **)error;
128
129
137 - (BOOL)downloadCancelContent:(NSString *)mediaContentKey error:(NSError **)error;
138
139
145 - (void)setNetworkTimeOut:(NSInteger)timeOut retry:(NSInteger)retryCount;
146
151 - (void)updateDownloadDRMInfo:(BOOL)bAll;
152
153
158 - (void)setCacheSize:(NSInteger)cacheSizeMB;
159
163 - (void)setBackgroundDownload:(BOOL)bBackground;
164
168 - (NSMutableArray*)contents;
169
173 - (void)sendStoredLms;
174
175
176 @end
KollusStorage::applicationExpireDate
NSDate * applicationExpireDate
KollusSDK 유효날짜(카테노이드에서 발급)
Definition: KollusStorage.h:30
KollusStorage::applicationBundleID
NSString * applicationBundleID
어플리케이션 Bundle ID(ex:com.yourcompany.applicationname)
Definition: KollusStorage.h:26
KollusStorage::delegate
id< KollusStorageDelegate > delegate
다운로드 상태정보 델리게이트
Definition: KollusStorage.h:17
KollusContent
Definition: KollusContent.h:11
KollusStorage::applicationKey
NSString * applicationKey
KollusSDK 인증 키(카테노이드에서 발급)
Definition: KollusStorage.h:24
KollusStorage::deviceType
NSString * deviceType
디바이스 Type(kp-mobile, kp-tablet)
Definition: KollusStorage.h:46
KollusStorage::storageSize
long long storageSize
다운로드 컨텐츠 총 사이즈(bytes)
Definition: KollusStorage.h:33
-[KollusStorage contents]
NSMutableArray * contents()
KollusStorage
Definition: KollusStorage.h:14
KollusStorageDelegate.h
KollusStorage::applicationVersion
NSString * applicationVersion
KollusSDK 버전
Definition: KollusStorage.h:19
KollusStorage::applicationDeviceID
NSString * applicationDeviceID
KollusPlayer Device ID.
Definition: KollusStorage.h:21
KollusStorage::keychainGroup
NSString * keychainGroup
keychain 그룹(ex:com.yourcompany.shared)
Definition: KollusStorage.h:28
KollusStorage::extraDrmParam
NSString * extraDrmParam
동적 drm 파라메터
Definition: KollusStorage.h:41
KollusStorage::appUserAgent
NSString * appUserAgent
UserAgent.
Definition: KollusStorage.h:44
-[KollusStorage sendStoredLms]
void sendStoredLms()
KollusStorage::serverPort
NSInteger serverPort
Hybrid App에서 사용되는 port 번호
Definition: KollusStorage.h:38
KollusStorage::cacheDataSize
long long cacheDataSize
캐시데이터 총 사이즈(bytes)
Definition: KollusStorage.h:35
KollusSDK.h