init(parent: Progress?, userInfo : [ProgressUserInfoKey : Any]?)
class func discreteProgress (totalUnitCount : Int64) -> Progress
init(totalUnitCount : Int64)
Availability 有効性
Technology
unitCount
The total number of units of work to assign to the progress instance.
Parent
The containing progress object for the created Progress
object.
portionOfParentTotalUnitCount
The unit count for the progress object. この進捗オブジェクトのための単位計数。
Use this method to initialize a progress object with a specified containing progress object and unit count.
In many cases, you can precede code that does a substantial amount of work with an invocation of this method, then repeatedly set the completed
or is
property in the loop that does the work.
You can invoke this method on one thread and then message the returned Progress
on another thread. For example, you can capture the created progress instance in a block that you pass to dispatch
. In that block, you can invoke methods like become
or resign
, and set the completed
or is
properties as your app finishes its work.
init(parent: Progress?, userInfo : [ProgressUserInfoKey : Any]?)
class func discreteProgress (totalUnitCount : Int64) -> Progress
init(totalUnitCount : Int64)