public static class IPrinterService.Default extends Object implements IPrinterService
IPrinterService.Default, IPrinterService.Stub
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
IBinder |
asBinder() |
Printer |
getPrinterById(String id,
ResultStatus status)
Returns the printer which matches the
Printer.getUuid() if any, or null if none. |
List<Printer> |
getPrinters(ResultStatus status)
Get all configured printers for this merchant.
|
List<Printer> |
getPrintersByCategory(Category category,
ResultStatus status)
Get all printers configured by this merchant for the given category.
|
TypeDetails |
getPrinterTypeDetails(Printer p,
ResultStatus status)
Returns the TypeDetails for the given printer.
|
boolean |
isPrinterSet(Category category,
ResultStatus status)
Returns true if there is any configured printer in the given category.
|
void |
removePrinter(Printer p,
ResultStatus status)
Removes a printer from being configured.
|
Printer |
setPrinter(Printer p,
ResultStatus status)
Adds a printer optionally with a category.
|
public List<Printer> getPrinters(ResultStatus status) throws RemoteException
getPrinters
in interface IPrinterService
RemoteException
public List<Printer> getPrintersByCategory(Category category, ResultStatus status) throws RemoteException
getPrintersByCategory
in interface IPrinterService
RemoteException
public boolean isPrinterSet(Category category, ResultStatus status) throws RemoteException
isPrinterSet
in interface IPrinterService
RemoteException
public Printer getPrinterById(String id, ResultStatus status) throws RemoteException
Printer.getUuid()
if any, or null if none.
This may return a printer which has not been configured.getPrinterById
in interface IPrinterService
RemoteException
public void removePrinter(Printer p, ResultStatus status) throws RemoteException
removePrinter
in interface IPrinterService
RemoteException
public Printer setPrinter(Printer p, ResultStatus status) throws RemoteException
setPrinter
in interface IPrinterService
RemoteException
public TypeDetails getPrinterTypeDetails(Printer p, ResultStatus status) throws RemoteException
getPrinterTypeDetails
in interface IPrinterService
RemoteException
public IBinder asBinder()
asBinder
in interface IInterface