setProgressBar
open external fun setProgressBar(progress: Double, options: ProgressBarOptions = definedExternally)(source)
Sets progress value in progress bar. Valid range is 0, 1.0.
Remove progress bar when progress < 0; Change to indeterminate mode when progress > 1.
On Windows, a mode can be passed. Accepted values are none, normal, indeterminate, error, and paused. If you call setProgressBar without a mode set (but with a value within the valid range), normal will be assumed.
On Linux, the progress bar shows on docks and taskbars that support the LauncherEntry D-Bus API. It is associated with the app's .desktop file, so app.setDesktopName must match the name of the app's actual .desktop file. Indeterminate mode is not supported.