TuSDKPFStickerLocalPackage Class Reference
Inherits from | NSObject |
---|---|
Declared in | TuSDKPFStickerLocalPackage.h |
Other Methods
categories
分类列表
@property (nonatomic, readonly) NSArray *categories
Declared In
TuSDKPFStickerLocalPackage.h
isInited
是否已初始化
@property (nonatomic, readonly) BOOL isInited
Declared In
TuSDKPFStickerLocalPackage.h
+ initWithConfig:
本地贴纸包
+ (instancetype)initWithConfig:(TuSDKConfig *)config
Parameters
config |
Sdk配置 |
---|
Return Value
本地贴纸包
Declared In
TuSDKPFStickerLocalPackage.h
– loadThumbWithSticker:imageView:
加载贴纸预览图片
- (void)loadThumbWithSticker:(TuSDKPFSticker *)sticker imageView:(UIImageView *)imageView
Parameters
sticker |
贴纸数据 |
---|---|
imageView |
图片视图 |
Declared In
TuSDKPFStickerLocalPackage.h
– loadThumbWithStickerGroup:imageView:
加载贴纸组预览图片
- (void)loadThumbWithStickerGroup:(TuSDKPFStickerGroup *)stickerGroup imageView:(UIImageView *)imageView
Parameters
stickerGroup |
贴纸数据 |
---|---|
imageView |
图片视图 |
Declared In
TuSDKPFStickerLocalPackage.h
– cancelLoadImage:
取消加载图片
- (void)cancelLoadImage:(UIImageView *)imageView
Parameters
imageView |
图片视图 |
---|
Declared In
TuSDKPFStickerLocalPackage.h
– loadStickerData:
加载贴纸数据
- (BOOL)loadStickerData:(TuSDKPFSticker *)sticker
Parameters
sticker |
贴纸数据对象 |
---|
Return Value
是否加载贴纸数据对象
Declared In
TuSDKPFStickerLocalPackage.h
– loadSmartSticker:withResName:
加载智能贴纸中包含的素材
- (UIImage *)loadSmartSticker:(TuSDKPFSticker *)sticker withResName:(NSString *)resName
Parameters
sticker |
贴纸数据对象 |
---|---|
resName |
元素名 |
Return Value
是否加载贴纸数据对象
Declared In
TuSDKPFStickerLocalPackage.h
– appenDelegate:
添加本地贴纸包委托
- (void)appenDelegate:(id<TuSDKPFStickerLocalPackageDelegate>)delegate
Parameters
delegate |
本地贴纸包委托 |
---|
Declared In
TuSDKPFStickerLocalPackage.h
– removeDelegate:
删除本地贴纸包委托
- (void)removeDelegate:(id<TuSDKPFStickerLocalPackageDelegate>)delegate
Parameters
delegate |
本地贴纸包委托 |
---|
Declared In
TuSDKPFStickerLocalPackage.h
– downloadWithIdt:key:fileId:
下载贴纸
- (void)downloadWithIdt:(uint64_t)idt key:(NSString *)key fileId:(NSString *)fileId
Parameters
idt |
贴纸ID |
---|---|
key |
下载SN |
fileId |
文件ID |
Declared In
TuSDKPFStickerLocalPackage.h
– cancelDownloadWithIdt:
取消下载贴纸
- (void)cancelDownloadWithIdt:(uint64_t)idt
Parameters
idt |
贴纸ID |
---|
Declared In
TuSDKPFStickerLocalPackage.h
– removeDownloadWithIdt:
删除下载贴纸
- (void)removeDownloadWithIdt:(uint64_t)idt
Parameters
idt |
贴纸ID |
---|
Declared In
TuSDKPFStickerLocalPackage.h
– isDownloadingWithIdt:
- 是否正在下载某个资源
- (BOOL)isDownloadingWithIdt:(uint64_t)idt
Discussion
- @param idt 下载对象ID *
- @return true: 下载中
Declared In
TuSDKPFStickerLocalPackage.h
– categorieWithIdt:
获取分类数据
- (TuSDKPFStickerCategory *)categorieWithIdt:(uint64_t)idt
Parameters
idt |
分类ID |
---|
Return Value
分类数据
Declared In
TuSDKPFStickerLocalPackage.h
– stickerWithIdt:
获取贴纸数据对象
- (TuSDKPFSticker *)stickerWithIdt:(uint64_t)idt
Parameters
idt |
贴纸数据对象ID |
---|
Return Value
贴纸数据对象
Declared In
TuSDKPFStickerLocalPackage.h
– categoriesWithCategories:
分类列表
- (NSArray *)categoriesWithCategories:(NSArray *)categories
Parameters
categories |
已选中分类列表 (如果为空返回所有分类) |
---|
Return Value
分类列表
Declared In
TuSDKPFStickerLocalPackage.h
– getSmartStickerGroups
获取所有的动态贴纸组列表
- (NSArray<TuSDKPFStickerGroup*> *)getSmartStickerGroups
Return Value
贴纸组列表
Declared In
TuSDKPFStickerLocalPackage.h
– getSmartStickerGroupsWithFaceFeature:
获取动态贴纸组列表
- (NSArray<TuSDKPFStickerGroup*> *)getSmartStickerGroupsWithFaceFeature:(BOOL)requireFaceFeature
Parameters
requireFaceFeature |
是否包含依赖人脸特征的贴纸 |
---|
Return Value
贴纸组列表
Declared In
TuSDKPFStickerLocalPackage.h
– containsWithGroupId:
是否存在包ID
- (BOOL)containsWithGroupId:(uint64_t)groupId
Parameters
groupId |
包ID |
---|
Return Value
是否存在包ID
Declared In
TuSDKPFStickerLocalPackage.h
– jsonAllData
获取所有json数据
- (NSString *)jsonAllData
Return Value
json数据
Declared In
TuSDKPFStickerLocalPackage.h
LocalSticker Methods
– addStickerGroupFile:master:
将本地贴纸添加到 Package
- (BOOL)addStickerGroupFile:(NSString *)filePath master:(NSString *)master
Parameters
filePath |
本地贴纸组文件 |
---|---|
master |
master |
Return Value
true/false
Availability
3.0
Declared In
TuSDKPFStickerLocalPackage.h