JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ApplilinkFile.h
Go to the documentation of this file.
1
13
14#import <UIKit/UIKit.h>
15
16NS_ASSUME_NONNULL_BEGIN
17
31
35@interface ApplilinkFile : NSObject
36
47+ (ApplilinkFileFetchResult)getBannerWithUrl:(nullable id)url;
48
58+ (ApplilinkFileFetchResult)getResourceWithUrl:(nullable NSString *)url;
59
69+ (ApplilinkFileFetchResult)getDataWithUrl:(nullable NSString *)url;
70
77+ (ApplilinkFileFetchResult)getCacheDataWithUrl:(nullable NSString *)url;
78
85+ (nullable NSData *)getFileWithUrl:(nullable NSString *)url;
86
94+ (void)saveData:(nullable NSData *)data
95 file:(nullable NSString *)file
96 path:(nullable NSString *)path;
97
104+ (void)deleteFile:(nullable NSString *)file path:(nullable NSString *)path;
105
113+ (void)deleteFile:(nullable NSString *)path;
114
122+ (BOOL)existFile:(nullable NSString *)file path:(nullable NSString *)path;
123
133+ (BOOL)existImageFile:(nullable NSString *)file path:(nullable NSString *)path;
134
142+ (void)createFolder;
143
149+ (nullable NSString *)getContentsPath;
150
156+ (nullable NSString *)getBannerCachePath;
157
163+ (nullable NSString *)getResourcePath;
164
170+ (nullable NSString *)getCacheDataPath;
171
181+ (nullable NSString *)getTemplatePathWithAdModel:(int)adModel
182 adLocation:(nullable NSString *)adLocation;
183
190+ (void)delateFolder;
191
200
208+ (void)clearCacheData;
209
215
216@end
217
218NS_ASSUME_NONNULL_END
219
220// code: language=Objective-C
221// kate: hl Objective-C;
222// vim: set ft=objc :
ApplilinkFileFetchResult
The outcome of a cached-file fetch.
Definition ApplilinkFile.h:23
@ ApplilinkFileFetchResultFailure
The download or decode failed and nothing was cached.
Definition ApplilinkFile.h:24
@ ApplilinkFileFetchResultDownloaded
The file was downloaded and written to the cache.
Definition ApplilinkFile.h:26
@ ApplilinkFileFetchResultCached
The file was already present in the cache (or the URL was NSNull).
Definition ApplilinkFile.h:28
Applilink SDK banner, resource, and data file cache utilities.
Definition ApplilinkFile.h:36
void createFolder()
Create the applilink cache folder tree if it is missing.
Definition ApplilinkFile.m:175
void clearCacheBannerImage()
Prune stale banner-image cache files.
Definition ApplilinkFile.m:261
nullable NSString * getContentsPath()
The applilink/contents directory under the temporary directory.
Definition ApplilinkFile.m:237
void delateFolder()
Delete the entire contents directory tree.
Definition ApplilinkFile.m:225
nullable NSString * getResourcePath()
The resource directory (contents/res).
Definition ApplilinkFile.m:246
void allClearCacheBannerImage()
Delete and recreate the banner-image cache directory.
Definition ApplilinkFile.m:269
void clearCacheData()
Prune stale cache-data files.
Definition ApplilinkFile.m:265
nullable NSString * getBannerCachePath()
The banner-image cache directory (contents/cache_img).
Definition ApplilinkFile.m:242
nullable NSString * getCacheDataPath()
The cache-data directory (contents/cache_data).
Definition ApplilinkFile.m:250