SChartProgressCalculator

@protocol SChartProgressCalculator

Provides an interface for any object wishing to calculate a progress value.

  • The current progress value.

    Returns a progress value between 0 and 1, inclusive. A value of 1 or greater indicates completion.

    Declaration

    Objective-C

    - (double)progress;

    Swift

    func progress() -> Double

    Return Value

    A double representing the current progress value.

  • Reset the calculator for re-use. *

    • Any state in the progress calculator is reset, and the calculator acts as if
    • it’s starting again from its initial state, i.e. a progress of zero.

    Declaration

    Objective-C

    - (void)resetForReuse;

    Swift

    func resetForReuse()
  • Returns YES when the progress calculator’s progress is > 1

    Declaration

    Objective-C

    - (BOOL)isComplete;

    Swift

    func isComplete() -> Any!