class ProgressBar: Any

Progress bar in the console.

Constructors

<init>

constructor(taskName: String, completion: Int, currentStatus: Int)

Progress bar in the console.

Parameters

Name Description
taskName: String

shown name of task at the beginning of the progress bar

completion: Int

maximum steps to until the task is completed

currentStatus: Int

current progress status

Methods

step

fun step()

Increments progress bar by one step.

ReturnValue

Name Description
Unit

stepTo

fun stepTo(n: Int)

Jumps to step n.

Parameters

Name Description
n: Int

ReturnValue

Name Description
Unit

CompanionObject

ProgressBar

class ProgressBar: Any

Progress bar in the console.

Fields

Name Description
const PREFIX: String

Prefix of the progress bar.

val PRINT_AFTER: /** * Starts printing the progress bar after the duration of [PRINT_AFTER]. */

Starts printing the progress bar after the duration of PRINT_AFTER.

val PRINT_AT_LEAST: /** * Print updates only after the duration of [PRINT_AT_LEAST] has elapsed. */

Print updates only after the duration of PRINT_AT_LEAST has elapsed.