Skip to content

Most visited

Recently visited

added in API level 19


Provides classes for implementing print services. Print services are plug-in components that know how to talk to printers via some standard protocols. These services serve as a bridge between the system and the printers. Hence, the printer and print protocol specific implementation is factored out of the system and can be independently developed and updated.

A print service implementation should extend PrintService and implement its abstract methods. Also the print service has to follow the contract for managing PrintJobs.

The system is responsible for starting and stopping a print service depending on whether there are active print jobs for the printers managed by the service. The print service should also perform printer discovery in a timely fashion to ensure good user experience. The interaction between the system and the print service during printer discovery is encapsulated by a PrinterDiscoverySession instance created by the print service when requested by the system.


CustomPrinterIconCallback Callback for onRequestCustomPrinterIcon(PrinterId, CancellationSignal, CustomPrinterIconCallback)
PrintDocument This class represents a printed document from the perspective of a print service. 
PrinterDiscoverySession This class encapsulates the interaction between a print service and the system during printer discovery. 
PrintJob This class represents a print job from the perspective of a print service. 

This is the base class for implementing print services. 

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)