Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear buffer method not working #72

Open
hharera opened this issue Aug 6, 2022 · 0 comments
Open

Clear buffer method not working #72

hharera opened this issue Aug 6, 2022 · 0 comments

Comments

@hharera
Copy link

hharera commented Aug 6, 2022

Scenario

  • When enter transaction mode by invoking enterPrinterBuffer(true), At first, the buffer is not cleared.
  • Then, Invoke printing methods and invoke commitPrinterBuffer(), print the old buffer data

Code Snippet

        printerService?.enterPrinterBuffer(true)
        
        printerService?.printBitmap(bitmap, callback)

        printerService?.commitPrinterBuffer()

        printerService?.exitPrinterBuffer(true)

Work Around Solution

        printerService?.printText("\n", callback)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant