<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPrintInteractionController/CompletionHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIPrintInteractionCompletionHandler"
  },
  "title" : "UIPrintInteractionController.CompletionHandler"
}
-->

# UIPrintInteractionController.CompletionHandler

A completion handler for responding to the completion of a print job or for handling printing errors.

```
typealias CompletionHandler = (UIPrintInteractionController, Bool, (any Error)?) -> Void
```

## Discussion

You implement this block as the final argument of [`present(animated:completionHandler:)`](/documentation/UIKit/UIPrintInteractionController/present(animated:completionHandler:)), [`present(from:animated:completionHandler:)`](/documentation/UIKit/UIPrintInteractionController/present(from:animated:completionHandler:)), or [`present(from:in:animated:completionHandler:)`](/documentation/UIKit/UIPrintInteractionController/present(from:in:animated:completionHandler:)). 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.

- `printInteractionController`: The shared instance of `UIPrintInteractionController` that is managing the print job.
- `completed`: A Boolean value that indicates whether the print job completed successfully.
- `error`: An instance of the <doc://com.apple.documentation/documentation/Foundation/NSError> that contains information about the printing error. The printing domain is [`UIPrintErrorDomain`](/documentation/UIKit/UIPrintErrorDomain). The printing error codes are described in `UIKit Printing Error Codes`. If the print job completes successfully, this parameter is `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)