List of usage examples for android.print PrintJob isFailed
public boolean isFailed()
From source file:de.appplant.cordova.plugin.printer.Printer.java
/** * Invokes the callback once the print job is complete or was canceled. * * @param job/* ww w.j a va2s .c o m*/ * The reference to the print job */ private void invokeCallbackOnceCompletedOrCanceled(final PrintJob job) { cordova.getThreadPool().execute(new Runnable() { @Override public void run() { for (;;) { if (job.isCancelled() || job.isCompleted() || job.isFailed()) { command.success(); break; } } } }); }