Hello,
I was wondering if there was any way to be notified when any "order receipt" is printed.
Thanks
You can use the print job API in the Clover Android SDK. If you print the job yourself using that API (PrintJobsConnector.print()
), you will get back an ID that you can use to poll the status, or use a ContentObserver
over the print jobs provider to watch asynchronously for changes in the print jobs database.
If you aren't printing the print job yourself, you can again use the print jobs API to get all the jobs in a given state (see PrintJobsConnector.getPrintJobIds()
). For example, you could poll until all of the print jobs are in state DONE (see PrintJobsContract.STATE_*
.
That's not possible. We do not expose or document the contents of the print jobs database. It's not suitable for public consumption in it's current form.
2 People are following this question.