printInteractionController(_:chooseCutterBehavior:)
Asks the delegate for the cutter behavior for the print job.
Declaration
optional func printInteractionController(_ printInteractionController: UIPrintInteractionController, chooseCutterBehavior availableBehaviors: [Any]) -> UIPrinter.CutterBehaviorParameters
- printInteractionController:
The shared instance of Uiprintinteractioncontroller that is managing the print job.
- availableBehaviors:
An array of Nsnumber objects identifying the printer’s available cutter behaviors. Each number corresponds to one of the constants defined in Cutterbehavior.
Return Value
The cutter behavior to use for the print job. The value must correspond to one of the constants in the availableBehaviors parameter.
Discussion
Some roll-fed printers support different options for cutting the paper. If you implement this method in your delegate, then it may be called during a print job. Your delegate method should determine when to make cuts and return the appropriate value.