Package com.clover.sdk.v1.printer
Interface IReceiptRegistrationService
-
- All Superinterfaces:
IInterface
- All Known Implementing Classes:
IReceiptRegistrationService.Default
,IReceiptRegistrationService.Stub
public interface IReceiptRegistrationService extends IInterface
An interface for registering components that wish to add additional data to customer receipts.
Developers that wish to add additional data to customer receipts should call theregister(Uri,ResultStatus)
method to register the URI of a content provider that will provide receipt data. Said content provider must conform to theReceiptContract
contract.
The ReceiptRegistration service is a bound AIDL service. Bind to this service as follows,Intent serviceIntent = new Intent(PrinterIntent.ACTION_RECEIPT_REGISTRATION); serviceIntent.putExtra(PrinterIntent.EXTRA_ACCOUNT, CloverAccount.getAccount(context)); serviceIntent.putExtra(PrinterIntent.EXTRA_VERSION, 1); context.bindService(serviceIntent);
You may also interact with the receipt registration service through theReceiptRegistrationConnector
class, which handles binding and asynchronous invocation of service methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IReceiptRegistrationService.Default
Default implementation for IReceiptRegistrationService.static class
IReceiptRegistrationService.Stub
Local-side IPC implementation stub class.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<ReceiptRegistration>
getRegistrations(ResultStatus resultStatus)
void
register(Uri uri, ResultStatus resultStatus)
void
unregister(Uri uri, ResultStatus resultStatus)
-
Methods inherited from interface android.os.IInterface
asBinder
-
-
-
-
Method Detail
-
register
void register(Uri uri, ResultStatus resultStatus) throws RemoteException
- Throws:
RemoteException
-
unregister
void unregister(Uri uri, ResultStatus resultStatus) throws RemoteException
- Throws:
RemoteException
-
getRegistrations
List<ReceiptRegistration> getRegistrations(ResultStatus resultStatus) throws RemoteException
- Throws:
RemoteException
-
-