Type Alias

UIPrinterPickerCompletionHandler

The completion handler to execute when dismissing a printer picker controller.

Declaration

typedef void (^UIPrinterPickerCompletionHandler)(UIPrinterPickerController *printerPickerController, BOOL userDidSelect, NSError *error);

Discussion

A printer picker completion handler takes the following parameters:

printerPickerController

The printer picker controller object that is being dismissed. This parameter contains information about the selected printer, if any.

userDidSelect

YES if the user selected a printer or NO if the user canceled the selection process. When this parameter is YES, use the printerPickerController object to retrieve the selected printer object.

error

An NSError object if there was a problem with the printer picker or nil if a printer was selected or the user canceled the picker.