Provides classes for implementing print support in applications and also contains all base classes and abstractions involved in printing. These base classes are also used by other more specialized printing related packages.
The entry point for interacting with the print system is the Android.Print.PrintManager which is a system service that can be obtained from the current context. The print manager provides APIs for printing, querying the state of print jobs, etc.
An application that wants to implement printing must extend Android.Print.PrintDocumentAdapter which defines the contract between the system and the application.The key idea behind this adapter is that the printed content may change based on the selected print options, such as media size, orientation, which requires the content to be re-laid out. The constraints according to which the content has to be laid out are encapsulated in the Android.Print.PrintAttributes class. Once layout is completed the application calls back to the system passing a Android.Print.PrintDocumentInfo instance which describes the generated content. After the content has been laid out the application may be asked to render some pages of that content for preview or printing. The range of pages that have to be rendered is abstracted by the Android.Print.PageRange class.
A print job is represented by the Android.Print.PrintJob class which has behavior methods as well as methods for querying its state. Each print job has a unique id represented by the Android.Print.PrintJobId class and exposes APIs for obtaining a Android.Print.PrintJobInfo which is a snapshot of its state. The print job state may change over time.
An available printer represented by the Android.Print.PrinterInfo class has a unique id which is abstracted by the Android.Print.PrinterId class. The Android.Print.PrinterInfo contains printer properties such as id, name, description, status, and printer capabilities encapsulated in the Android.Print.PrinterCapabilitiesInfo class. Printer capabilities describe how a printer can print content, for example what are the supported media sizes, color modes, resolutions, etc.
Type | Reason |
---|---|
PageRange | Represents a range of pages. |
PageRange+InterfaceConsts | Documentation for this section has not yet been entered. |
PrintAttributes | This class represents the attributes of a print job. |
PrintAttributes+Builder | Documentation for this section has not yet been entered. |
PrintAttributes+InterfaceConsts | Documentation for this section has not yet been entered. |
PrintAttributes+Margins | Documentation for this section has not yet been entered. |
PrintAttributes+MediaSize | Documentation for this section has not yet been entered. |
PrintAttributes+Resolution | Documentation for this section has not yet been entered. |
PrintColorMode | Enumerates values returned by several types and taken as a parameter of the Android.Print.PrintAttributes.Builder.SetColorMode member. |
PrintContentType | Enumerates values returned by several types and taken as a parameter of the Android.Print.PrintDocumentInfo.Builder.SetContentType member. |
PrintDocumentAdapter | Base class that provides the content of a document to be printed. |
PrintDocumentAdapter+LayoutResultCallback | Documentation for this section has not yet been entered. |
PrintDocumentAdapter+WriteResultCallback | Documentation for this section has not yet been entered. |
PrintDocumentInfo | This class encapsulates information about a document for printing purposes. |
PrintDocumentInfo+Builder | Documentation for this section has not yet been entered. |
PrintDocumentInfo+InterfaceConsts | Documentation for this section has not yet been entered. |
PrinterCapabilitiesInfo | This class represents the capabilities of a printer. |
PrinterCapabilitiesInfo+Builder | Documentation for this section has not yet been entered. |
PrinterCapabilitiesInfo+InterfaceConsts | Documentation for this section has not yet been entered. |
PrinterId | This class represents the unique id of a printer. |
PrinterId+InterfaceConsts | Documentation for this section has not yet been entered. |
PrinterInfo | This class represents the description of a printer. |
PrinterInfo+Builder | Documentation for this section has not yet been entered. |
PrinterInfo+InterfaceConsts | Documentation for this section has not yet been entered. |
PrinterStatus | Enumerates values returned by several types and taken as a parameter of the Android.Print.PrinterInfo.Builder..ctor, and Android.Print.PrinterInfo.Builder.SetStatus members. |
PrintJob | This class represents a print job from the perspective of an application. |
PrintJobId | This class represents the id of a print job. |
PrintJobId+InterfaceConsts | Documentation for this section has not yet been entered. |
PrintJobInfo | This class represents the description of a print job. |
PrintJobInfo+Builder | Documentation for this section has not yet been entered. |
PrintJobInfo+InterfaceConsts | Documentation for this section has not yet been entered. |
PrintJobState | Enumerates values returned by several types. |
PrintManager | System level service for accessing the printing capabilities of the platform. |