public interface PluginController
限定符和类型 | 方法和说明 |
---|---|
PluginTaskResult |
backup(java.io.File backToFolder)
备份
该操作需阻塞结果
|
long |
calculateBackupSize()
统计当前插件占用的硬盘大小
包括内置文件和依赖
|
void |
customLoad(PluginFolder folder,
PluginTaskCallback callback)
自定义加载一个插件
|
void |
download(PluginMarker marker,
ProgressCallback callback)
下载
|
void |
enable(PluginMarker marker,
PluginTaskCallback callback)
启用
|
void |
forbid(PluginMarker marker,
PluginTaskCallback callback)
禁用
|
void |
install(java.io.File zipFile,
ProgressCallback callback)
从本地安装
|
void |
install(PluginMarker marker,
ProgressCallback callback)
安装刚才下载好的
|
PluginTaskResult |
restoreBackup(java.io.File backupFolder)
还原
|
void |
uninstall(PluginMarker marker,
boolean force,
PluginTaskCallback callback)
卸载
|
void |
update(java.io.File toZipFile,
ProgressCallback callback)
从本地更新
|
void |
update(PluginMarker marker,
PluginMarker toMarker,
ProgressCallback callback)
更新
|
void |
uploadLicense(PluginMarker marker,
byte[] datas,
PluginTaskCallback callback)
上传插件lic
|
void download(PluginMarker marker, ProgressCallback callback)
void install(PluginMarker marker, ProgressCallback callback)
void install(java.io.File zipFile, ProgressCallback callback)
void update(PluginMarker marker, PluginMarker toMarker, ProgressCallback callback)
void update(java.io.File toZipFile, ProgressCallback callback)
void uninstall(PluginMarker marker, boolean force, PluginTaskCallback callback)
void forbid(PluginMarker marker, PluginTaskCallback callback)
void enable(PluginMarker marker, PluginTaskCallback callback)
void customLoad(PluginFolder folder, PluginTaskCallback callback)
long calculateBackupSize()
PluginTaskResult backup(java.io.File backToFolder)
PluginTaskResult restoreBackup(java.io.File backupFolder)
void uploadLicense(PluginMarker marker, byte[] datas, PluginTaskCallback callback)