Class

UIPrint​Info

A UIPrint​Info object encapsulates information about a print job, including printer identifier, job name, output type (photo, normal, grayscale), orientation (portrait or landscape), and any selected duplex mode. This information is used by the printing system when it prints.

Overview

Typically you create a UIPrint​Info object and assign it to the print​Info property of the shared UIPrint​Interaction​Controller instance. However, it is not necessary to create a UIPrint​Info object for a print job; UIKit assumes certain defaults. In the printing-options user interface, users can select the printer, single-side or double-side printing for duplex printers, and (if the application allows it) a range of pages to print.

Symbols

Creating a UIPrintInfo Object

class func print​Info()

Returns a print-information object initialized with default values.

init(dictionary:​ [Any​Hashable :​ Any]?)

Returns a print-information object that is initialized with the data in the passed-in dictionary.

var dictionary​Representation:​ [Any​Hashable :​ Any]

Returns a dictionary representation of a print-information object.

Getting and Setting Print-Job Attributes

var duplex:​ UIPrint​Info​Duplex

Specifies the duplex mode to use for the print job.

var job​Name:​ String

The name of the print job.

var orientation:​ UIPrint​Info​Orientation

The orientation of the printed content, portrait or landscape.

var printer​ID:​ String?

An identifier of the printer to use for the print job.

Relationships

Inherits From