JubeatPlus 3.9.11
Loading...
Searching...
No Matches
RecommendAdCache.h
Go to the documentation of this file.
1
22
23#import <Foundation/Foundation.h>
24
25NS_ASSUME_NONNULL_BEGIN
26
32typedef void (^RecommendAdCacheAllAdDataCallback)(id _Nullable data, NSError *_Nullable error);
33
37@interface RecommendAdCache : NSObject
38
47+ (void)getAllAdStatus;
48
55+ (void)getAllAdDataWithCallBack:(RecommendAdCacheAllAdDataCallback)callBack;
56
61+ (void)clearAllAdData;
62
70+ (nullable NSDate *)getAllAdDataInfoExpire;
71
77
84+ (void)getBannerDataWithList:(nullable NSArray *)list max:(int)max;
85
92+ (BOOL)getResourceDataWithList:(nullable NSArray *)list;
93
100+ (void)getCacheDataWithList:(nullable NSArray *)list max:(int)max;
101
106+ (void)getTemplateFiles;
107
116+ (void)saveTemplateData:(nullable NSData *)data
117 path:(nullable NSString *)path
118 file:(nullable NSString *)file;
119
129+ (nullable NSError *)createHtmlWithAdModel:(int)adModel
130 adLocation:(nullable NSString *)adLocation
131 verticalAlign:(int)verticalAlign
132 impressionId:(nullable NSString *)impressionId;
133
148+ (nullable NSString *)convertHtmlWithAdModel:(int)adModel
149 adLocation:(nullable NSString *)adLocation
150 adType:(int)adType
151 verticalAlign:(int)verticalAlign
152 bannerList:(nullable id)bannerList
153 impressionId:(nullable NSString *)impressionId
154 selfList:(nullable id)selfList
155 comResData:(nullable id)comResData;
156
165+ (void)setTargetUrl:(nullable NSArray *)targetUrl
166 adType:(int)adType
167 adModel:(int)adModel
168 adLocation:(nullable NSString *)adLocation;
169
175+ (void)setAdDisplayCountWithAdId:(nullable NSString *)adId;
176
183+ (void)setAdDisplayCountDailyWithAdId:(nullable NSString *)adId;
184
190+ (void)setAdDisplayCountTotalWithAdId:(nullable NSString *)adId;
191
196+ (void)clearAdDisplayCount;
197
205+ (void)setHtmlAdDataWithAdModel:(int)adModel
206 adLocation:(nullable NSString *)adLocation
207 bannerList:(nullable id)bannerList;
208
216+ (nullable NSArray *)getHtmlAdDataWithAdModel:(int)adModel
217 adLocation:(nullable NSString *)adLocation;
218
224+ (BOOL)getMoviePlayerIcon;
225
241+ (nullable id)getMoviewQuaryWithAdModel:(int)adModel
242 adLocation:(nullable NSString *)adLocation
243 verticalAlign:(int)verticalAlign
244 impressionId:(nullable NSString *)impressionId
245 errorObj:(NSError *_Nullable *_Nullable)errorObj;
246
247@end
248
249NS_ASSUME_NONNULL_END
250
251// code: language=Objective-C
252// kate: hl Objective-C;
253// vim: set ft=objc :
NS_ASSUME_NONNULL_BEGIN typedef void(^ RecommendAdCacheAllAdDataCallback)(id _Nullable data, NSError *_Nullable error)
Completion block for a full advert-data fetch.
The recommend network's advert-cache store.
Definition RecommendAdCache.h:38
nullable NSDate * getAllAdDataInfoExpire()
The cached advert-data expiry date.
Definition RecommendAdCache.m:311
void getAllAdStatus()
Refresh the aggregated advert-status table.
Definition RecommendAdCache.m:167
void clearAdDisplayCount()
Clear both the daily and the total display counters.
Definition RecommendAdCache.m:657
void clearAllAdDataInfoExpire()
Clear the in-memory expiry record for the cached advert data.
Definition RecommendAdCache.m:322
void getTemplateFiles()
Download and cache every advert template file listed in the SDK template list.
Definition RecommendAdCache.m:369
BOOL getMoviePlayerIcon()
Pre-load the movie-player icon resource files.
Definition RecommendAdCache.m:698
void clearAllAdData()
Clear the cached aggregated advert-data record from NSUserDefaults.
Definition RecommendAdCache.m:307