public static interface StickerView.StickerViewDelegate
限定符和类型 | 方法和说明 |
---|---|
boolean |
canAppendSticker(StickerView view,
StickerData sticker)
检查是否允许使用贴纸
|
void |
onCancelAllStickerSelected()
轻触屏幕, 取消所有贴纸选中状态
|
void |
onStickerCountChanged(StickerData stickerData,
StickerItemViewInterface stickerItemViewInterface,
int operation,
int count)
贴纸数量改变
|
void |
onStickerItemViewReleased()
当贴纸被松开时
|
void |
onStickerItemViewSelected(StickerData stickerData,
java.lang.String text,
boolean needReverse)
当贴纸被选中时
|
boolean canAppendSticker(StickerView view, StickerData sticker)
view
- 贴纸视图sticker
- 贴纸数据void onStickerItemViewSelected(StickerData stickerData, java.lang.String text, boolean needReverse)
stickerData
- text
- 贴纸文本内容needReverse
- void onStickerItemViewReleased()
void onCancelAllStickerSelected()
void onStickerCountChanged(StickerData stickerData, StickerItemViewInterface stickerItemViewInterface, int operation, int count)
stickerData
- 当前变更的贴纸类operation
- 当前操作 0 删除 1 添加count
- 变化后的贴纸数量