Open hharera opened 2 years ago
enterPrinterBuffer(true)
commitPrinterBuffer()
printerService?.enterPrinterBuffer(true) printerService?.printBitmap(bitmap, callback) printerService?.commitPrinterBuffer() printerService?.exitPrinterBuffer(true)
printerService?.printText("\n", callback)
Scenario
enterPrinterBuffer(true)
, At first, the buffer is not cleared.commitPrinterBuffer()
, print the old buffer dataCode Snippet
Work Around Solution