TuSDKPFBrushLocalPackage Class Reference
Inherits from | NSObject |
---|---|
Declared in | TuSDKPFBrushLocalPackage.h |
+ package
本地笔刷包
+ (instancetype)package
Return Value
package 本地笔刷包
Declared In
TuSDKPFBrushLocalPackage.h
+ initWithConfig:
本地笔刷包
+ (instancetype)initWithConfig:(TuSDKConfig *)config
Parameters
config |
Sdk配置 |
---|
Return Value
config 本地笔刷包
Declared In
TuSDKPFBrushLocalPackage.h
codes
原生笔刷代号列表
@property (nonatomic, readonly) NSArray *codes
Declared In
TuSDKPFBrushLocalPackage.h
isInited
是否已初始化
@property (nonatomic, readonly) BOOL isInited
Declared In
TuSDKPFBrushLocalPackage.h
– appenDelegate:
添加本地笔刷包委托
- (void)appenDelegate:(id<TuSDKPFBrushLocalPackageDelegate>)delegate
Parameters
delegate |
本地笔刷包委托 |
---|
Declared In
TuSDKPFBrushLocalPackage.h
– removeDelegate:
删除本地笔刷包委托
- (void)removeDelegate:(id<TuSDKPFBrushLocalPackageDelegate>)delegate
Parameters
delegate |
本地笔刷包委托 |
---|
Declared In
TuSDKPFBrushLocalPackage.h
– eraserBrush
获取橡皮擦笔刷对象
- (TuSDKPFBrush *)eraserBrush
Return Value
笔刷对象 (如果未找到对应选项,返回默认配置)
Declared In
TuSDKPFBrushLocalPackage.h
– brushWithCode:
获取笔刷对象
- (TuSDKPFBrush *)brushWithCode:(NSString *)code
Parameters
code |
笔刷代号 |
---|
Return Value
笔刷对象 (如果未找到对应选项,返回默认配置)
Declared In
TuSDKPFBrushLocalPackage.h
– verifyCodes:
验证笔刷代号
- (NSArray *)verifyCodes:(NSArray *)codes
Parameters
codes |
笔刷代号列表 |
---|
Return Value
笔刷名称
Declared In
TuSDKPFBrushLocalPackage.h
– brushWithCodes:
获取指定名称的笔刷列表
- (NSArray *)brushWithCodes:(NSArray *)codes
Parameters
codes |
笔刷代号列表 |
---|
Return Value
笔刷列表
Declared In
TuSDKPFBrushLocalPackage.h
– loadThumbWithBrush:imageView:
加载笔刷预览图片
- (void)loadThumbWithBrush:(TuSDKPFBrush *)brush imageView:(UIImageView *)imageView
Parameters
brush |
笔刷对象 |
---|---|
imageView |
图片视图 |
Declared In
TuSDKPFBrushLocalPackage.h
– cancelLoadImage:
取消加载图片
- (void)cancelLoadImage:(UIImageView *)imageView
Parameters
imageView |
图片视图 |
---|
Declared In
TuSDKPFBrushLocalPackage.h
– loadBrushData:
加载笔刷数据
- (BOOL)loadBrushData:(TuSDKPFBrush *)brush
Parameters
brush |
笔刷对象 |
---|
Return Value
是否加载贴纸数据对象
Declared In
TuSDKPFBrushLocalPackage.h
– downloadWithIdt:key:fileId:
下载笔刷
- (void)downloadWithIdt:(uint64_t)idt key:(NSString *)key fileId:(NSString *)fileId
Parameters
idt |
笔刷ID |
---|---|
key |
下载SN |
fileId |
文件ID |
Declared In
TuSDKPFBrushLocalPackage.h
– cancelDownloadWithIdt:
取消下载笔刷
- (void)cancelDownloadWithIdt:(uint64_t)idt
Parameters
idt |
笔刷ID |
---|
Declared In
TuSDKPFBrushLocalPackage.h
– removeDownloadWithIdt:
删除下载笔刷
- (void)removeDownloadWithIdt:(uint64_t)idt
Parameters
idt |
笔刷ID |
---|
Declared In
TuSDKPFBrushLocalPackage.h
– jsonAllData
获取所有json数据
- (NSString *)jsonAllData
Return Value
json数据
Declared In
TuSDKPFBrushLocalPackage.h