PrintJob

interface PrintJob

Manages a print job.

Use {@link #printTextLine(String, String, String, boolean, boolean)}, and {@link #printImage(Bitmap)} repeatedly until everything has been printed. Complete the print job by calling {@link #finish()}.

Functions

Link copied to clipboard
abstract fun finish(): PrinterStatus

Finishes the print job.

Link copied to clipboard
abstract fun getMonospaceWidth(): Int
Link copied to clipboard
abstract fun getPrintWidth(): Int
Link copied to clipboard
abstract fun getStatus(): PrinterStatus?
Link copied to clipboard
abstract fun printImage(image: Bitmap?): Boolean

Prints a bitmap.

Link copied to clipboard
abstract fun printTextLine(left: String?, center: String?, right: String?, monospace: Boolean, bold: Boolean): Boolean

Prints one line of text. Text that does not fit on the line is truncated.

Inheritors

Link copied to clipboard