更换项目
This commit is contained in:
48
YuMi/CustomUI/Adbvertise/XPAdImageTool.h
Normal file
48
YuMi/CustomUI/Adbvertise/XPAdImageTool.h
Normal file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// YMAdImageTool.h
|
||||
// YUMI
|
||||
//
|
||||
// Created by YUMI on 2022/10/31.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "AdvertiseModel.h"
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface XPAdImageTool : NSObject
|
||||
+ (instancetype)shareImageTool;
|
||||
|
||||
///是否登录成功im
|
||||
@property (nonatomic,assign)BOOL isImLogin;
|
||||
|
||||
//去除广告信息
|
||||
- (AdvertiseModel *)getAdInfoFromCacheInMainWith:(NSString *)link;
|
||||
///保存信息
|
||||
- (void)saveAdInfo:(AdvertiseModel *)adInfo;
|
||||
/**
|
||||
* 判断文件是否存在
|
||||
*/
|
||||
- (BOOL)isFileExistWithFilePath:(NSString *)filePath;
|
||||
|
||||
/**
|
||||
* 初始化广告页面
|
||||
*/
|
||||
- (void)getAdvertisingImage;
|
||||
|
||||
/**
|
||||
* 下载新图片
|
||||
*/
|
||||
- (void)downloadAdImageWithUrl:(NSString *)imageUrl imageName:(NSString *)imageName;
|
||||
|
||||
/**
|
||||
* 删除旧图片
|
||||
*/
|
||||
- (void)deleteOldImage;
|
||||
|
||||
/**
|
||||
* 根据图片名拼接文件路径
|
||||
*/
|
||||
- (NSString *)getFilePathWithImageName:(NSString *)imageName;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
Reference in New Issue
Block a user