One Logo Pool Ball
Foundation · IOS API REFERENCE

Progress

class · iOS 7.0+ · SDK 27.1

class Progress

Members (52)

static · iOS 7.0+

current

TypeScript
static current(): (Progress) | null
Swift declaration
class func current() -> Progress?
static · iOS 9.0+

discreteProgress

TypeScript
static discreteProgress(unitCount: number): Progress
Swift declaration
class func discreteProgress(totalUnitCount unitCount: Int64) -> Progress
init · iOS 7.0+

init

TypeScript
static initTotalUnitCount(unitCount: number): Progress
Swift declaration
init(totalUnitCount unitCount: Int64)
init · iOS 9.0+

init

TypeScript
static initTotalUnitCountParentPendingUnitCount(unitCount: number, parent: Progress, portionOfParentTotalUnitCount: number): Progress
Swift declaration
init(totalUnitCount unitCount: Int64, parent: Progress, pendingUnitCount portionOfParentTotalUnitCount: Int64)
method · iOS 9.0+

addChild

TypeScript
addChildWithPendingUnitCount(child: Progress, inUnitCount: number): void
Swift declaration
func addChild(_ child: Progress, withPendingUnitCount inUnitCount: Int64)
method · iOS 7.0+

becomeCurrent

TypeScript
becomeCurrent(unitCount: number): void
Swift declaration
func becomeCurrent(withPendingUnitCount unitCount: Int64)
method · iOS 7.0+

cancel

TypeScript
cancel(): void
Swift declaration
func cancel()
init · iOS 7.0+

init

TypeScript
static initParentUserInfo(parentProgressOrNil?: (Progress) | null, userInfoOrNil?: (NativeMap<ProgressUserInfoKey, unknown>) | null): Progress
Swift declaration
init(parent parentProgressOrNil: Progress?, userInfo userInfoOrNil: [ProgressUserInfoKey : Any]? = nil)
method · iOS 7.0+

pause

TypeScript
pause(): void
Swift declaration
func pause()
method · iOS 7.0+

resignCurrent

TypeScript
resignCurrent(): void
Swift declaration
func resignCurrent()
method · iOS 9.0+

resume

TypeScript
resume(): void
Swift declaration
func resume()
method · iOS 7.0+

setUserInfoObject

TypeScript
setUserInfoObject(objectOrNil: (unknown) | null, key: ProgressUserInfoKey): void
Swift declaration
func setUserInfoObject(_ objectOrNil: Any?, forKey key: ProgressUserInfoKey)
get · iOS 7.0+

isCancellable

TypeScript
get isCancellable(): boolean
Swift declaration
var isCancellable: Bool { get set }
set · iOS 7.0+

isCancellable

TypeScript
set isCancellable(value: boolean)
Swift declaration
var isCancellable: Bool { get set }
get · iOS 7.0+

cancellationHandler

TypeScript
get cancellationHandler(): ((() => Promise<void>)) | null
Swift declaration
var cancellationHandler: (@Sendable () -> Void)? { get set }
set · iOS 7.0+

cancellationHandler

TypeScript
set cancellationHandler(value: ((() => void)) | null)
Swift declaration
var cancellationHandler: (@Sendable () -> Void)? { get set }
get · iOS 7.0+

isCancelled

TypeScript
get isCancelled(): boolean
Swift declaration
var isCancelled: Bool { get }
get · iOS 7.0+

completedUnitCount

TypeScript
get completedUnitCount(): number
Swift declaration
var completedUnitCount: Int64 { get set }
set · iOS 7.0+

completedUnitCount

TypeScript
set completedUnitCount(value: number)
Swift declaration
var completedUnitCount: Int64 { get set }
get · iOS 11.0+

fileOperationKind

TypeScript
get fileOperationKind(): (Progress_FileOperationKind) | null
Swift declaration
var fileOperationKind: Progress.FileOperationKind? { get set }
set · iOS 11.0+

fileOperationKind

TypeScript
set fileOperationKind(value: (Progress_FileOperationKind) | null)
Swift declaration
var fileOperationKind: Progress.FileOperationKind? { get set }
get · iOS 11.0+

fileURL

TypeScript
get fileURL(): (string) | null
Swift declaration
var fileURL: URL? { get set }
set · iOS 11.0+

fileURL

TypeScript
set fileURL(value: (string) | null)
Swift declaration
var fileURL: URL? { get set }
get · iOS 7.0+

isFinished

TypeScript
get isFinished(): boolean
Swift declaration
var isFinished: Bool { get }
get · iOS 7.0+

fractionCompleted

TypeScript
get fractionCompleted(): number
Swift declaration
var fractionCompleted: Double { get }
get · iOS 7.0+

isIndeterminate

TypeScript
get isIndeterminate(): boolean
Swift declaration
var isIndeterminate: Bool { get }
get · iOS 7.0+

kind

TypeScript
get kind(): (ProgressKind) | null
Swift declaration
var kind: ProgressKind? { get set }
set · iOS 7.0+

kind

TypeScript
set kind(value: (ProgressKind) | null)
Swift declaration
var kind: ProgressKind? { get set }
get · iOS 7.0+

localizedAdditionalDescription

TypeScript
get localizedAdditionalDescription(): (string) | null
Swift declaration
var localizedAdditionalDescription: String! { get set }
set · iOS 7.0+

localizedAdditionalDescription

TypeScript
set localizedAdditionalDescription(value: (string) | null)
Swift declaration
var localizedAdditionalDescription: String! { get set }
get · iOS 7.0+

localizedDescription

TypeScript
get localizedDescription(): (string) | null
Swift declaration
var localizedDescription: String! { get set }
set · iOS 7.0+

localizedDescription

TypeScript
set localizedDescription(value: (string) | null)
Swift declaration
var localizedDescription: String! { get set }
get · iOS 7.0+

isPausable

TypeScript
get isPausable(): boolean
Swift declaration
var isPausable: Bool { get set }
set · iOS 7.0+

isPausable

TypeScript
set isPausable(value: boolean)
Swift declaration
var isPausable: Bool { get set }
get · iOS 7.0+

isPaused

TypeScript
get isPaused(): boolean
Swift declaration
var isPaused: Bool { get }
get · iOS 7.0+

pausingHandler

TypeScript
get pausingHandler(): ((() => Promise<void>)) | null
Swift declaration
var pausingHandler: (@Sendable () -> Void)? { get set }
set · iOS 7.0+

pausingHandler

TypeScript
set pausingHandler(value: ((() => void)) | null)
Swift declaration
var pausingHandler: (@Sendable () -> Void)? { get set }
get · iOS 9.0+

resumingHandler

TypeScript
get resumingHandler(): ((() => Promise<void>)) | null
Swift declaration
var resumingHandler: (@Sendable () -> Void)? { get set }
set · iOS 9.0+

resumingHandler

TypeScript
set resumingHandler(value: ((() => void)) | null)
Swift declaration
var resumingHandler: (@Sendable () -> Void)? { get set }
get · iOS 7.0+

totalUnitCount

TypeScript
get totalUnitCount(): number
Swift declaration
var totalUnitCount: Int64 { get set }
set · iOS 7.0+

totalUnitCount

TypeScript
set totalUnitCount(value: number)
Swift declaration
var totalUnitCount: Int64 { get set }
get · iOS 7.0+

userInfo

TypeScript
get userInfo(): NativeMap<ProgressUserInfoKey, unknown>
Swift declaration
var userInfo: [ProgressUserInfoKey : Any] { get }
get · iOS 11.0+

throughput

TypeScript
get throughput(): (number) | null
Swift declaration
var 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 · iOS 11.0+

throughput

TypeScript
set throughput(value: (number) | null)
Swift declaration
var 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 · iOS 11.0+

fileTotalCount

TypeScript
get fileTotalCount(): (number) | null
Swift declaration
var 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 · iOS 11.0+

fileTotalCount

TypeScript
set fileTotalCount(value: (number) | null)
Swift declaration
var 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.

method · iOS 8.0+

performAsCurrent

TypeScript
performAsCurrent(unitCount: number, work: (() => unknown)): unknown
Swift declaration
func performAsCurrent<ReturnType>(withPendingUnitCount unitCount: Int64, using work: () throws -> ReturnType) rethrows -> ReturnType

Retrieves 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 · iOS 11.0+

fileCompletedCount

TypeScript
get fileCompletedCount(): (number) | null
Swift declaration
var 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 · iOS 11.0+

fileCompletedCount

TypeScript
set fileCompletedCount(value: (number) | null)
Swift declaration
var 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 · iOS 11.0+

estimatedTimeRemaining

TypeScript
get estimatedTimeRemaining(): (number) | null
Swift declaration
var 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 · iOS 11.0+

estimatedTimeRemaining

TypeScript
set estimatedTimeRemaining(value: (number) | null)
Swift declaration
var 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.

method · iOS 27.0+

addChild

TypeScript
addChildWithPendingUnitCount90133(reporter: ProgressReporter, count: number): void
Swift declaration
func 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`.

Skipped declarations

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)

All Foundation types →