Instance Property

cancellationHandler

The block to invoke when progress is cancelled.

Declaration

@property(copy) void (^cancellationHandler)(void);

Discussion

If the receiver is a child of another progress object, the cancellationHandler block will be invoked when the parent is cancelled.

Special Considerations

You are responsible for cancelling any work associated with the progress object.

The cancellation handler may be invoked on any queue. If you must do work on a specific queue, you should dispatch to that queue from within the cancellation handler block.

See Also

Controlling Progress

cancellable

Indicates whether the receiver is tracking work that can be cancelled.

cancelled

Indicates whether the receiver is tracking work that has been cancelled.

- cancel

Cancel progress tracking.

pausable

Indicates whether the receiver is tracking work that can be paused.

paused

Indicates whether the receiver is tracking work that has been paused.

- pause

Pause progress tracking.

pausingHandler

The block to invoke when progress is paused.

- resume

Resume progress tracking.

resumingHandler

The block to invoke when progress is resumed.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software