Skip to content

Instantly share code, notes, and snippets.

@zarinfam
Last active July 29, 2019 07:40
Show Gist options
  • Save zarinfam/8f5f94ca794939f5d67b7183c96783fe to your computer and use it in GitHub Desktop.
Save zarinfam/8f5f94ca794939f5d67b7183c96783fe to your computer and use it in GitHub Desktop.
Created with Copy to Gist
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