The type of block callback for responding to the completion of a print job or handing printing errors.
- iOS 4.2+
- Mac Catalyst 13.0+
You implement this block as the final argument of
present(from:. When a print job concludes, you can reset any state set up for printing and do related housekeeping tasks. If the print job encountered an error, it is likely to be a programming error, so you might want to log the error for debugging purposes.
The shared instance of
UIPrintthat is managing the print job.
A Boolean value that indicates whether the print job completed successfully.
An instance of the
NSErrorthat contains information about the printing error. The printing domain is
UIPrint. The printing error codes are described in UIKit Printing Error Codes. If the print job completes successfully, this parameter is