iOS Developer Library

Developer

UIKit Framework Reference UIPrintInteractionControllerDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

UIPrintInteractionControllerDelegate

The UIPrintInteractionControllerDelegate protocol is implemented by the delegate of the UIPrintInteractionController shared instance to perform a number of optional tasks.

If the application has special requirements for content sizes, it can implement printInteractionController:choosePaper: to return a UIPrintPaper object encapsulating the page size and the printing area to use for a print job. If you want more control of the presentation of the printing options, the delegate can return a view controller that owns the printing-options view in an implementation of printInteractionControllerParentViewController:. The delegate can also implement methods that are invoked when the printing user interface is presented and when it is dismissed, and when the print job begins and ends.

  • Constants for specifying the cutter behavior of a roll-fed printer.

    Declaration

    Swift

    enum UIPrinterCutterBehavior : Int { case NoCut case PrinterDefault case CutAfterEachPage case CutAfterEachCopy case CutAfterEachJob }

    Objective-C

    typedef enum UIPrinterCutterBehavior : NSInteger { UIPrinterCutterBehaviorNoCut, UIPrinterCutterBehaviorPrinterDefault, UIPrinterCutterBehaviorCutAfterEachPage, UIPrinterCutterBehaviorCutAfterEachCopy, UIPrinterCutterBehaviorCutAfterEachJob, } UIPrinterCutterBehavior;

    Constants

    • noCut

      UIPrinterCutterBehaviorNoCut

      Do not cut the paper.

      Available in iOS 9.0 and later.

    • printerDefault

      UIPrinterCutterBehaviorPrinterDefault

      Use the printer’s default behavior.

      Available in iOS 9.0 and later.

    • cutAfterEachPage

      UIPrinterCutterBehaviorCutAfterEachPage

      Cut the paper after each page.

      Available in iOS 9.0 and later.

    • cutAfterEachCopy

      UIPrinterCutterBehaviorCutAfterEachCopy

      Cut the paper after each copy of the document.

      Available in iOS 9.0 and later.

    • cutAfterEachJob

      UIPrinterCutterBehaviorCutAfterEachJob

      Cut the paper after each print job finishes.

      Available in iOS 9.0 and later.

    Import Statement

    Objective-C

    @import UIKit;

    Swift

    import UIKit

    Availability

    Available in iOS 9.0 and later.