ProgressBar

public class ProgressBar : View

Progress bar can indicate progress of an activity visually.

The progressbar can operate in two modes, percentage mode, or activity mode. The progress bar starts in percentage mode and setting the fraction property will reflect on the UI the progress made so far. Activity mode is used when the application has no way of knowing how much time is left, and is started when you invoke the Pulse() method. You should call the pulse method repeatedly as your application makes progress.

  • Initializes a new instance of the ProgressBar class, starts in percentage mode and uses relative layout.

    Declaration

    Swift

    public override init()
  • Gets or sets the progress indicator fraction to display, must be a value between 0 and 1

    Declaration

    Swift

    public var fraction: Float { get set }
  • Notifies the progress bar that some progress has taken place.

    If the ProgressBar is is percentage mode, it switches to activity mode. If is in activity mode, the marker is moved.

    Declaration

    Swift

    public func pulse()
  • Declaration

    Swift

    public override func redraw(region: Rect, painter: Painter)
  • Undocumented

    Declaration

    Swift

    public override var debugDescription: String { get }