MultiProgressBarAnimation
class MultiProgressBarAnimation(val terminal: Terminal, clearWhenFinished: Boolean = false, speedEstimateDuration: Duration = 30.seconds, maker: ProgressBarWidgetMaker = MultiProgressBarWidgetMaker, timeSource: TimeSource.WithComparableMarks = TimeSource.Monotonic) : RefreshableAnimation, ProgressBarAnimation
Constructors
Link copied to clipboard
constructor(terminal: Terminal, clearWhenFinished: Boolean = false, speedEstimateDuration: Duration = 30.seconds, maker: ProgressBarWidgetMaker = MultiProgressBarWidgetMaker, timeSource: TimeSource.WithComparableMarks = TimeSource.Monotonic)
Functions
Link copied to clipboard
open override fun <T> addTask(definition: ProgressBarDefinition<T>, context: T, total: Long?, completed: Long, start: Boolean, visible: Boolean): ProgressTask<T>
Add a new task to the progress bar with the given definition and context.
Link copied to clipboard
fun ProgressBarAnimation.addTask(definition: ProgressBarDefinition<Unit>, total: Long? = null, completed: Long = 0, start: Boolean = true, visible: Boolean = true): ProgressTask<Unit>
Add a new task to the progress bar with the given definition.
Link copied to clipboard
Create an animator that runs this animation synchronously.
Link copied to clipboard
Remove a task with the given taskId from the progress bar.
Link copied to clipboard
Remove a task from the progress bar.