14#import <UIKit/UIKit.h>
16NS_ASSUME_NONNULL_BEGIN
85+ (nullable NSData *)getFileWithUrl:(nullable NSString *)url;
94+ (void)saveData:(nullable NSData *)data
95 file:(nullable NSString *)file
96 path:(nullable NSString *)path;
104+ (void)deleteFile:(nullable NSString *)file path:(nullable NSString *)path;
113+ (void)deleteFile:(nullable NSString *)path;
122+ (BOOL)existFile:(nullable NSString *)file path:(nullable NSString *)path;
133+ (BOOL)existImageFile:(nullable NSString *)file path:(nullable NSString *)path;
181+ (nullable NSString *)getTemplatePathWithAdModel:(
int)adModel
182 adLocation:(nullable NSString *)adLocation;
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