---
title: UIPrintInteractionController.CompletionHandler
framework: uikit
role: symbol
role_heading: Type Alias
path: uikit/uiprintinteractioncontroller/completionhandler
---

# UIPrintInteractionController.CompletionHandler

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

## Declaration

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

## Discussion

Discussion You implement this block as the final argument of present(animated:completionHandler:), present(from:animated:completionHandler:), or 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.

## See Also

### Printing directly to a printer

- [print(to:completionHandler:)](uikit/uiprintinteractioncontroller/print(to:completionhandler:).md)
