public class Hardware
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkSerialConnection(ResponseHandler responseHandler)
Check the serial connection to the DotDashPay Chip.
|
static Hardware |
getInstance() |
static void |
listenForPaymentData(boolean onlyNewData,
ResponseHandler responseHandler)
Listen for payment data from the payments-related peripheral hardware
|
static void |
listPeripherals(ResponseHandler responseHandler)
Asks the DotDashPay chip to return a list of all attached hardware peripherals.
|
public static Hardware getInstance()
public static void listenForPaymentData(boolean onlyNewData,
ResponseHandler responseHandler)
onlyNewData - specify whether we should only listen
for new payments data from the payments hardware, e.g. ignore
card swipes that occured before this method was calledresponseHandler - public static void checkSerialConnection(ResponseHandler responseHandler)
responseHandler - public static void listPeripherals(ResponseHandler responseHandler)
responseHandler -