Represents a batch progress tracker that manages multiple progress items.
表示一个批量进度跟踪器,用于管理多个进度项。
The callback function to be called when progress updates.
Creates a new BatchProgress instance.
创建一个新的 BatchProgress 实例。
The number of progress items.
进度项的数量。
可选
The weight of the progress item. Defaults to null.
A callback function for updating the progress of this item.
Creates a callback function for a new progress item.
为新的进度项创建一个回调函数。
Resets the progress tracker, clearing all items and weights.
重置进度跟踪器,清除所有项目和权重。
The index of the item to update. Use -1 to update overall progress directly.
The new progress value (0-1).
Updates the progress of a specific item and recalculates the overall progress.
更新特定项目的进度并重新计算总体进度。
En
Represents a batch progress tracker that manages multiple progress items.
Zh
表示一个批量进度跟踪器,用于管理多个进度项。