SChartProgressCalculator Protocol Reference

Declared in SChartProgressCalculator.h
Availability
Related samples

Overview

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

Tasks

Instance Methods

isComplete

Returns YES when the progress calculator’s progress is > 1

- (BOOL)isComplete

Declared In

SChartProgressCalculator.h

progress

The current progress value.

- (double)progress

Return Value

A double representing the current progress value.

Discussion

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

Declared In

SChartProgressCalculator.h

resetForReuse

Reset the calculator for re-use.

- (void)resetForReuse

Discussion

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.

Declared In

SChartProgressCalculator.h