Changes

Jump to: navigation, search

Kotlin - Printing with the Android Printing Framework

13 bytes added, 18:58, 29 November 2017
Options for Building Print Support into Android Apps
The Android print panel provides the usual printing options such as paper size, color, orientation and number of copies. Other print destination options may be accessed by tapping on the current printer or PDF output selection.
== Options Options for Building Print Support into Android Apps ==
The Printing framework introduced into the Android 4.4 SDK provides a number of options for incorporating print support into Android applications. These options can be categorized as follows:
Similarly, the color mode may also be configured to indicate whether the print output is to be in color or black and white. This is achieved by passing one of the following options through to the setColorMode() method of the PrintHelper instance:
COLOR_MODE_COLOR * '''COLOR_MODE_COLOR''' – Indicates that the image is to be printed in color.
COLOR_MODE_MONOCHROME * '''COLOR_MODE_MONOCHROME''' – Indicates that the image is to be printed in black and white.
The printing framework will default to color printing unless the monochrome option is specified as follows:

Navigation menu