Contents

totalUnitCount

The total number of tracked units of work for the current progress.

Declaration

var totalUnitCount: Int64 { get set }

Discussion

For an Progress with a kind of file, the unit of this property is bytes, and the fileTotalCountKey and fileCompletedCountKey keys in the userInfo dictionary report the overall count of files.

For any other kind of Progress, the unit of measurement doesn’t matter as long as it’s consistent. You can report the values to the user in the localizedDescription and localizedAdditionalDescription.

See Also

Related Documentation

Reporting Progress