Package com.clover.sdk.v1.printer.job

This package contains classes for printing to Clover connected printers. The name of the class describes the type of print job. For example, StaticBillPrintJob prints bills, StaticOrderPrintJob prints orders, etc.

Each class contains a builder subclass that is used to construct the print job. Use the PrintJob.print(android.content.Context, android.accounts.Account) method to print immediately, if there is only one printer for the job type, or to have the system query the user for the target printer. Use the PrintJob.print(android.content.Context, android.accounts.Account, com.clover.sdk.v1.printer.Printer) to target a specific printer. For example, to re-print a receipt,
 
 PrintJob receiptPrintJob = new ReceiptPrintJob()
     .orderId("FH0VXM0WJX6JG")
     .flags(PrintJob.FLAG_REPRINT)
     .build();
 receiptPrintJob.print(context, CloverAccount.getAccount(context));
 
 
To print simple text,
 
 PrintJob textPrintJob = new TextPrintJob()
     .text("Hello, Clover printer!")
     .build();
 textPrintJob.print(context, CloverAccount.getAccount(context));
 
 
To print a View,
 
 PrintJob viewPrintJob = new ViewPrintJob()
     .view(view)
     .build();
 viewPrintJob.print(context, CloverAccount.getAccount(context));