public class BrushLocalPackage extends java.lang.Object implements TuSdkDownloadManger.TuSdkDownloadMangerDelegate
限定符和类型 | 类和说明 |
---|---|
static interface |
BrushLocalPackage.BrushLocalPackageDelegate
本地笔刷包委托
|
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
EraserBrushCode
默认笔刷代号
|
限定符和类型 | 方法和说明 |
---|---|
void |
appenDelegate(BrushLocalPackage.BrushLocalPackageDelegate delegate)
添加下载管理器委托
|
void |
cancelDownload(long id)
取消下载笔刷
|
void |
cancelLoadImage(android.widget.ImageView imageView)
取消加载图片
|
void |
download(long id,
java.lang.String key,
java.lang.String fileId)
下载笔刷
|
org.json.JSONObject |
getAllDatas()
获取所有数据
|
BrushData |
getBrushWithCode(java.lang.String code)
获取笔刷对象
|
java.util.List<BrushData> |
getBrushWithCodes(java.util.List<java.lang.String> codes)
获取笔刷对象
|
java.util.List<java.lang.String> |
getCodes()
原生笔刷名称列表
|
BrushData |
getEeaserBrush()
获取橡皮擦笔刷对象
|
static BrushLocalPackage |
init(TuSdkConfigs configs)
初始化原生笔刷配置
|
boolean |
isInited()
是否初始化完成
|
boolean |
loadBrushData(BrushData data)
加载笔刷数据
|
void |
loadThumbWithBrush(android.widget.ImageView view,
BrushData data)
加载笔刷预览图
|
void |
onDownloadMangerStatusChanged(TuSdkDownloadManger manager,
TuSdkDownloadItem item,
DownloadTaskStatus status)
下载状态改变
|
void |
removeDelegate(BrushLocalPackage.BrushLocalPackageDelegate delegate)
删除下载管理器委托
|
void |
removeDownloadWithIdt(long groupId)
删除下载笔刷包
|
static BrushLocalPackage |
shared()
原生笔刷配置
|
java.util.List<java.lang.String> |
verifyCodes(java.util.List<java.lang.String> names)
验证笔刷名称
|
public static final java.lang.String EraserBrushCode
public static BrushLocalPackage shared()
public static BrushLocalPackage init(TuSdkConfigs configs)
configs
- Sdk配置public void appenDelegate(BrushLocalPackage.BrushLocalPackageDelegate delegate)
delegate
- 下载管理器委托public void removeDelegate(BrushLocalPackage.BrushLocalPackageDelegate delegate)
delegate
- 下载管理器委托public java.util.List<java.lang.String> getCodes()
public boolean isInited()
public java.util.List<java.lang.String> verifyCodes(java.util.List<java.lang.String> names)
public BrushData getEeaserBrush()
public BrushData getBrushWithCode(java.lang.String code)
code
- 笔刷名称public java.util.List<BrushData> getBrushWithCodes(java.util.List<java.lang.String> codes)
codes
- 笔刷名称列表public boolean loadBrushData(BrushData data)
data
- 笔刷对象public void loadThumbWithBrush(android.widget.ImageView view, BrushData data)
public void cancelLoadImage(android.widget.ImageView imageView)
public void download(long id, java.lang.String key, java.lang.String fileId)
public void cancelDownload(long id)
public void removeDownloadWithIdt(long groupId)
public org.json.JSONObject getAllDatas()
public void onDownloadMangerStatusChanged(TuSdkDownloadManger manager, TuSdkDownloadItem item, DownloadTaskStatus status)
onDownloadMangerStatusChanged
在接口中 TuSdkDownloadManger.TuSdkDownloadMangerDelegate
manager
- 下载管理器item
- 下载对象status
- 下载状态