public interface StickerItemViewInterface
限定符和类型 | 接口和说明 |
---|---|
static interface |
StickerItemViewInterface.StickerItemViewDelegate
贴纸原件视图委托
|
限定符和类型 | 方法和说明 |
---|---|
StickerResult |
getResult(android.graphics.Rect region)
贴纸结果
|
StickerData |
getStickerData()
获取贴纸数据
|
StickerView.StickerType |
getStickerType()
获取Sticker类型
|
void |
setDelegate(StickerItemViewInterface.StickerItemViewDelegate mDelegate)
贴纸原件视图委托
|
void |
setParentFrame(android.graphics.Rect frame)
设置父视图信息
|
void |
setSelected(boolean equals)
设置选中状态
|
void |
setSticker(StickerData sticker)
设置贴纸图片
|
void |
setStickerType(StickerView.StickerType stickerType) |
void |
setStickerViewType(StickerView.StickerType stickerType)
设置StickerView类型
|
void |
setStroke(int strokeColor,
int strokeWidth)
设置边框
|
void setStickerViewType(StickerView.StickerType stickerType)
stickerType
- void setStickerType(StickerView.StickerType stickerType)
StickerView.StickerType getStickerType()
void setSelected(boolean equals)
void setSticker(StickerData sticker)
StickerData getStickerData()
void setStroke(int strokeColor, int strokeWidth)
strokeColor
- 边框颜色strokeWidth
- 边框宽度void setParentFrame(android.graphics.Rect frame)
void setDelegate(StickerItemViewInterface.StickerItemViewDelegate mDelegate)
StickerResult getResult(android.graphics.Rect region)
region
- 图片选区范围