mirai
2.16.0
jvm
mirai-console
/
net.mamoe.mirai.console.fontend
/
ProcessProgress
Process
Progress
interface
ProcessProgress
:
Closeable
一个下载进度
See also
Mirai
Console.
INSTANCE.
new
Process
Progress
Members
Functions
close
Link copied to clipboard
abstract
override
fun
close
(
)
释放此进度, 相关资源和 UI 将会更新
mark
Failed
Link copied to clipboard
abstract
fun
markFailed
(
)
将该进度标记为 已失败 / 出错
rerender
Link copied to clipboard
abstract
fun
rerender
(
)
立即重新渲染此进度
set
Total
Size
Link copied to clipboard
abstract
fun
setTotalSize
(
totalSize
:
Long
)
设置此进度的最终大小
update
Link copied to clipboard
abstract
fun
update
(
processed
:
Long
)
abstract
fun
update
(
processed
:
Long
,
totalSize
:
Long
)
更新下载进度的进度
update
Text
Link copied to clipboard
open
fun
updateText
(
txt
:
CharSequence
)
abstract
fun
updateText
(
txt
:
String
)
更新当前下载进度的文本