current
TypeScriptstatic current(): (Progress) | nullSwift declarationclass func current() -> Progress?class · iOS 7.0+ · SDK 27.1
class Progressstatic current(): (Progress) | nullSwift declarationclass func current() -> Progress?static discreteProgress(unitCount: number): ProgressSwift declarationclass func discreteProgress(totalUnitCount unitCount: Int64) -> Progressstatic initTotalUnitCount(unitCount: number): ProgressSwift declarationinit(totalUnitCount unitCount: Int64)static initTotalUnitCountParentPendingUnitCount(unitCount: number, parent: Progress, portionOfParentTotalUnitCount: number): ProgressSwift declarationinit(totalUnitCount unitCount: Int64, parent: Progress, pendingUnitCount portionOfParentTotalUnitCount: Int64)addChildWithPendingUnitCount(child: Progress, inUnitCount: number): voidSwift declarationfunc addChild(_ child: Progress, withPendingUnitCount inUnitCount: Int64)becomeCurrent(unitCount: number): voidSwift declarationfunc becomeCurrent(withPendingUnitCount unitCount: Int64)cancel(): voidSwift declarationfunc cancel()static initParentUserInfo(parentProgressOrNil?: (Progress) | null, userInfoOrNil?: (NativeMap<ProgressUserInfoKey, unknown>) | null): ProgressSwift declarationinit(parent parentProgressOrNil: Progress?, userInfo userInfoOrNil: [ProgressUserInfoKey : Any]? = nil)pause(): voidSwift declarationfunc pause()resignCurrent(): voidSwift declarationfunc resignCurrent()resume(): voidSwift declarationfunc resume()setUserInfoObject(objectOrNil: (unknown) | null, key: ProgressUserInfoKey): voidSwift declarationfunc setUserInfoObject(_ objectOrNil: Any?, forKey key: ProgressUserInfoKey)get isCancellable(): booleanSwift declarationvar isCancellable: Bool { get set }set isCancellable(value: boolean)Swift declarationvar isCancellable: Bool { get set }get cancellationHandler(): ((() => Promise<void>)) | nullSwift declarationvar cancellationHandler: (@Sendable () -> Void)? { get set }set cancellationHandler(value: ((() => void)) | null)Swift declarationvar cancellationHandler: (@Sendable () -> Void)? { get set }get isCancelled(): booleanSwift declarationvar isCancelled: Bool { get }get completedUnitCount(): numberSwift declarationvar completedUnitCount: Int64 { get set }set completedUnitCount(value: number)Swift declarationvar completedUnitCount: Int64 { get set }get fileOperationKind(): (Progress_FileOperationKind) | nullSwift declarationvar fileOperationKind: Progress.FileOperationKind? { get set }set fileOperationKind(value: (Progress_FileOperationKind) | null)Swift declarationvar fileOperationKind: Progress.FileOperationKind? { get set }get fileURL(): (string) | nullSwift declarationvar fileURL: URL? { get set }set fileURL(value: (string) | null)Swift declarationvar fileURL: URL? { get set }get isFinished(): booleanSwift declarationvar isFinished: Bool { get }get fractionCompleted(): numberSwift declarationvar fractionCompleted: Double { get }get isIndeterminate(): booleanSwift declarationvar isIndeterminate: Bool { get }get kind(): (ProgressKind) | nullSwift declarationvar kind: ProgressKind? { get set }set kind(value: (ProgressKind) | null)Swift declarationvar kind: ProgressKind? { get set }get localizedAdditionalDescription(): (string) | nullSwift declarationvar localizedAdditionalDescription: String! { get set }set localizedAdditionalDescription(value: (string) | null)Swift declarationvar localizedAdditionalDescription: String! { get set }get localizedDescription(): (string) | nullSwift declarationvar localizedDescription: String! { get set }set localizedDescription(value: (string) | null)Swift declarationvar localizedDescription: String! { get set }get isPausable(): booleanSwift declarationvar isPausable: Bool { get set }set isPausable(value: boolean)Swift declarationvar isPausable: Bool { get set }get isPaused(): booleanSwift declarationvar isPaused: Bool { get }get pausingHandler(): ((() => Promise<void>)) | nullSwift declarationvar pausingHandler: (@Sendable () -> Void)? { get set }set pausingHandler(value: ((() => void)) | null)Swift declarationvar pausingHandler: (@Sendable () -> Void)? { get set }get resumingHandler(): ((() => Promise<void>)) | nullSwift declarationvar resumingHandler: (@Sendable () -> Void)? { get set }set resumingHandler(value: ((() => void)) | null)Swift declarationvar resumingHandler: (@Sendable () -> Void)? { get set }get totalUnitCount(): numberSwift declarationvar totalUnitCount: Int64 { get set }set totalUnitCount(value: number)Swift declarationvar totalUnitCount: Int64 { get set }get userInfo(): NativeMap<ProgressUserInfoKey, unknown>Swift declarationvar userInfo: [ProgressUserInfoKey : Any] { get }get throughput(): (number) | nullSwift declarationvar throughput: Int? { get set }A value that represents the speed of data processing, in bytes per second. If present, `Progress` presents additional information in its localized description by setting a value in the `userInfo` dictionary.
set throughput(value: (number) | null)Swift declarationvar throughput: Int? { get set }A value that represents the speed of data processing, in bytes per second. If present, `Progress` presents additional information in its localized description by setting a value in the `userInfo` dictionary.
get fileTotalCount(): (number) | nullSwift declarationvar fileTotalCount: Int? { get set }The total number of files for a file progress object. If the current progress is operating on a set of files, set this property to the total number of files in the operation. If present, `Progress` presents additional information in its localized description by setting a value in the `userInfo` dictionary.
set fileTotalCount(value: (number) | null)Swift declarationvar fileTotalCount: Int? { get set }The total number of files for a file progress object. If the current progress is operating on a set of files, set this property to the total number of files in the operation. If present, `Progress` presents additional information in its localized description by setting a value in the `userInfo` dictionary.
performAsCurrent(unitCount: number, work: (() => unknown)): unknownSwift declarationfunc performAsCurrent<ReturnType>(withPendingUnitCount unitCount: Int64, using work: () throws -> ReturnType) rethrows -> ReturnTypeRetrieves the current thread's progress object, executes the specified block, and increments the progress object by the specified units of work. - Parameters: - unitCount: The number of units of work to increment for the current progress object. - work: A closure that wraps the work you specify to complete for incrementing the current progress. - Returns: The return value of the closure that you specify for the `work` parameter. Use this function as a convenience method to wrap an existing method or closure to increment the current progress object. This function is the same as calling `becomeCurrent(withPendingUnitCount:)`, doing the work you specify in the closure, and calling `resignCurrent()`.
get fileCompletedCount(): (number) | nullSwift declarationvar fileCompletedCount: Int? { get set }The number of completed files for a file progress object. If the current progress is operating on a set of files, set this property to the number of completed files in the operation. If present, `Progress` presents additional information in its localized description by setting a value in the `userInfo` dictionary.
set fileCompletedCount(value: (number) | null)Swift declarationvar fileCompletedCount: Int? { get set }The number of completed files for a file progress object. If the current progress is operating on a set of files, set this property to the number of completed files in the operation. If present, `Progress` presents additional information in its localized description by setting a value in the `userInfo` dictionary.
get estimatedTimeRemaining(): (number) | nullSwift declarationvar estimatedTimeRemaining: TimeInterval? { get set }A value that indicates the estimated amount of time remaining to complete the progress, in seconds. If present, `Progress` presents additional information in its localized description by setting a value in the `userInfo` dictionary.
set estimatedTimeRemaining(value: (number) | null)Swift declarationvar estimatedTimeRemaining: TimeInterval? { get set }A value that indicates the estimated amount of time remaining to complete the progress, in seconds. If present, `Progress` presents additional information in its localized description by setting a value in the `userInfo` dictionary.
addChildWithPendingUnitCount90133(reporter: ProgressReporter, count: number): voidSwift declarationfunc addChild(_ reporter: ProgressReporter, withPendingUnitCount count: Int)Adds a ProgressReporter as a child to a Progress, which constitutes a portion of Progress's totalUnitCount. - Parameters: - reporter: A `ProgressReporter` instance. - count: Number of units delegated from `self`'s `totalCount`.
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
Progress.subprogress(assigningCount:)
The iOS SDK compiler rejected this binding: instance method 'out' requires that 'Subprogress' be a class type
Progress.init()
inherited init: cannot prove legal (class declares 3 custom initializers)