23#import <Foundation/Foundation.h>
25NS_ASSUME_NONNULL_BEGIN
84+ (void)getBannerDataWithList:(nullable NSArray *)list max:(
int)max;
92+ (BOOL)getResourceDataWithList:(nullable NSArray *)list;
100+ (void)getCacheDataWithList:(nullable NSArray *)list max:(
int)max;
116+ (void)saveTemplateData:(nullable NSData *)data
117 path:(nullable NSString *)path
118 file:(nullable NSString *)file;
129+ (nullable NSError *)createHtmlWithAdModel:(
int)adModel
130 adLocation:(nullable NSString *)adLocation
131 verticalAlign:(
int)verticalAlign
132 impressionId:(nullable NSString *)impressionId;
148+ (nullable NSString *)convertHtmlWithAdModel:(
int)adModel
149 adLocation:(nullable NSString *)adLocation
151 verticalAlign:(
int)verticalAlign
152 bannerList:(nullable
id)bannerList
153 impressionId:(nullable NSString *)impressionId
154 selfList:(nullable
id)selfList
155 comResData:(nullable
id)comResData;
165+ (void)setTargetUrl:(nullable NSArray *)targetUrl
168 adLocation:(nullable NSString *)adLocation;
175+ (void)setAdDisplayCountWithAdId:(nullable NSString *)adId;
183+ (void)setAdDisplayCountDailyWithAdId:(nullable NSString *)adId;
190+ (void)setAdDisplayCountTotalWithAdId:(nullable NSString *)adId;
205+ (void)setHtmlAdDataWithAdModel:(
int)adModel
206 adLocation:(nullable NSString *)adLocation
207 bannerList:(nullable
id)bannerList;
216+ (nullable NSArray *)getHtmlAdDataWithAdModel:(
int)adModel
217 adLocation:(nullable NSString *)adLocation;
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;
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