Instance Method

printerPickerController:shouldShowPrinter:

Asks the delegate if the specified printer should be included in the picker.

Declaration

- (BOOL)printerPickerController:(UIPrinterPickerController *)printerPickerController shouldShowPrinter:(UIPrinter *)printer;

Parameters

printerPickerController

The printer picker controller that is asking the delegate for information.

printer

The printer object for the delegate to consider.

Return Value

YES if the printer should be displayed or NO if it should not.

Discussion

Implement this method in your delegate if you want to filter the list of printers displayed by the printer picker interface. You might use this method to display only printers with specific capabilities. The printer picker interface calls this method once for each printer it is preparing to display, so your implementation should perform any required checks and return as quickly as possible. Do not perform any lengthy operations in this method.

If you do not implement this method, the picker interface displays all of the printers that it finds.