print(to:completionHandler:)
Prints directly to the specified printer.
Declaration
func print(to printer: UIPrinter, completionHandler completion: UIPrintInteractionController.CompletionHandler? = nil) -> BoolParameters
- printer:
The printer to use for printing. You can obtain a list of available printers using a Uiprinterpickercontroller object.
- completion:
The block to execute when the print operation finishes.
Return Value
true if printing was successful or false if there was a problem.
Discussion
This method starts the print job and displays the printing progress indicator to the user. This method associates the current printing information (available in the printInfo property) with the job but disables duplex printing. Upon completion of the print job, the print interaction controller executes the block in the completion parameter.