TuSDKStickerAdapter Class Reference
Inherits from | TuSDKNKDownloadAdapter : TuSDKTKImageViewTask : NSObject |
---|---|
Declared in | TuSDKStickerAdapter.h |
categories
分类列表
@property (nonatomic, readonly) NSArray *categories
Declared In
TuSDKStickerAdapter.h
+ initWithConfig:
本地贴纸包
+ (instancetype)initWithConfig:(TuSDKConfig *)config
Parameters
config |
Sdk配置 |
---|
Return Value
本地贴纸包
Declared In
TuSDKStickerAdapter.h
– loadThumbWithSticker:imageView:
加载贴纸预览图片
- (void)loadThumbWithSticker:(TuSDKPFSticker *)sticker imageView:(UIImageView *)imageView
Parameters
sticker |
贴纸数据 |
---|---|
imageView |
图片视图 |
Declared In
TuSDKStickerAdapter.h
– loadThumbWithStickerGroup:imageView:
加载贴纸组预览图片
- (void)loadThumbWithStickerGroup:(TuSDKPFStickerGroup *)stickerGroup imageView:(UIImageView *)imageView
Parameters
stickerGroup |
贴纸数据 |
---|---|
imageView |
图片视图 |
Declared In
TuSDKStickerAdapter.h
– loadStickerData:
加载贴纸数据
- (BOOL)loadStickerData:(TuSDKPFSticker *)sticker
Parameters
sticker |
贴纸数据对象 |
---|
Return Value
是否加载贴纸数据对象
Declared In
TuSDKStickerAdapter.h
– loadSmartSticker:withResName:
加载智能贴纸中包含的素材
- (UIImage *)loadSmartSticker:(TuSDKPFSticker *)sticker withResName:(NSString *)resName
Parameters
sticker |
贴纸数据对象 |
---|---|
resName |
元素名 |
Return Value
是否加载贴纸数据对象
Declared In
TuSDKStickerAdapter.h
– categorieWithIdt:
获取分类数据
- (TuSDKPFStickerCategory *)categorieWithIdt:(uint64_t)idt
Parameters
idt |
分类ID |
---|
Return Value
分类数据
Declared In
TuSDKStickerAdapter.h
– stickerWithIdt:
获取贴纸数据对象
- (TuSDKPFSticker *)stickerWithIdt:(uint64_t)idt
Parameters
idt |
贴纸数据对象ID |
---|
Return Value
贴纸数据对象
Declared In
TuSDKStickerAdapter.h
– categoriesWithCategories:
分类列表
- (NSArray *)categoriesWithCategories:(NSArray *)categories
Parameters
categories |
已选中分类列表 (如果为空返回所有分类) |
---|
Return Value
分类列表
Declared In
TuSDKStickerAdapter.h
– getGroupListWithCategoryType:
获取分类下的贴纸组数据
- (NSArray<TuSDKPFStickerGroup*> *)getGroupListWithCategoryType:(uint64_t)idt
Parameters
idt |
分类ID |
---|
Return Value
分类数据
Declared In
TuSDKStickerAdapter.h
– containsWithGroupId:
是否存在包ID
- (BOOL)containsWithGroupId:(uint64_t)groupId
Parameters
groupId |
包ID |
---|
Return Value
是否存在包ID
Declared In
TuSDKStickerAdapter.h
– addStickerGroupFile:master:
将本地贴纸添加到 Package
- (BOOL)addStickerGroupFile:(NSString *)filePath master:(NSString *)master
Parameters
filePath |
本地贴纸组文件 |
---|---|
master |
master |
Return Value
true/false
Availability
3.0
Declared In
TuSDKStickerAdapter.h