Last active
July 29, 2019 07:40
-
-
Save zarinfam/8f5f94ca794939f5d67b7183c96783fe to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public synchronized void printText(String text) throws PrintingException { | |
| PrintingListener printingListener = new PrintingListener() { | |
| @Override | |
| public void onSuccess(SuccessResult successResult) { | |
| } | |
| @Override | |
| public void onFailure(FailureResult failureResult) { | |
| } | |
| @Override | |
| public void onTimeout(TimeoutResult timeoutResult) { | |
| } | |
| }; | |
| printerApi.startPrinting(text, printingListener); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment