Interface IPrinterService

  • All Superinterfaces:
    All Known Implementing Classes:
    IPrinterService.Default, IPrinterService.Stub

    public interface IPrinterService
    extends IInterface
    An interface for adding, listing, and removing Clover printers. To print to a Clover printer, use the classes in the com.clover.sdk.v1.printer.job package. To open a cash drawer connected to a Clover printer, use the CashDrawer class. To interact with the Clover print queue, use the PrintQueue class.

    The Printer service is a bound AIDL service. Bind to this service as follows,
     Intent serviceIntent = new Intent(PrinterIntent.ACTION_PRINTER_SERVICE);
     serviceIntent.putExtra(PrinterIntent.EXTRA_ACCOUNT, CloverAccount.getAccount(context));
     serviceIntent.putExtra(PrinterIntent.EXTRA_VERSION, 1);
    For more information about bound services, refer to the Android documentation: Bound Services .
    You may also interact with the printer service through the PrinterConnector class, which handles binding and asynchronous invocation of service methods.
    See Also:
    PrinterIntent, CloverAccount, PrinterConnector