Class: Toybox.WatchUi.ProgressBar
- Inherits:
-
Toybox.Lang.Object
Overview
A representation of an on-screen progress bar.
A ProgressBar is a special View that presents the user with a progress
indicator. These can display a string and either an incremental progress
bar from 0-100% or a "busy" indicator. A ProgressBar is pushed using
pushView(), which provides either null
or a
BehaviorDelegate. If a BehaviorDelegate
is provided, the onBack()
method will be called if Back button is pressed while the ProgressBar
is displayed.
Note:
The look and feel of a progress bar is device-specific.
Instance Method Summary collapse
-
initialize(displayString as Lang.String, startValue as Lang.Float or Null)
Constructor.
-
setDisplayString(displayString as Lang.String) as Void
Set the string to display on the ProgressBar.
-
setProgress(progressValue as Lang.Float or Null) as Void
Set the value of the ProgressBar.
Instance Method Details
initialize(displayString as Lang.String, startValue as Lang.Float or Null)
Constructor
setDisplayString(displayString as Lang.String) as Void
Set the string to display on the ProgressBar.
setProgress(progressValue as Lang.Float or Null) as Void
Set the value of the ProgressBar.