com.anywherecommerce.android.sdk.devices.bbpos
Class BBPOSDeviceEventDispatch
-
java.lang.Object
-
com.anywherecommerce.android.sdk.devices.bbpos.BBPOSDeviceEventDispatch
-
public class <span class="typeNameLabel">BBPOSDeviceEventDispatch</span> extends java.lang.Object
Method Summary
Modifier and TypeMethod and Description`static BBDeviceController``<span class="memberNameLink">
getController()
static
getInstance()
static java.lang.String``
getLastEvent()
void``
killCommand(java.lang.String commandToKill)
void````
onAudioAutoConfigCompleted(boolean b,
java.lang.String s)
` `void
onAudioAutoConfigError(AudioAutoConfigError audioAutoConfigError)
void``
onAudioAutoConfigProgressUpdate(double v)
void``
onAudioDevicePlugged()
void``
onAudioDeviceUnplugged()
void``
onBarcodeReaderConnected()
void``
onBarcodeReaderDisconnected()
void``
onBatteryLow(BatteryStatus batteryStatus)
void``
onBTConnected(BluetoothDevice bluetoothDevice)
void``
onBTDisconnected()
void``
onBTReturnScanResults(java.util.List list)
void``
onBTScanStopped()
void``
onBTScanTimeout()
void``
onDeviceHere(boolean b)
void``
onDeviceReset()
void``
onEnterStandbyMode()
void````
onError(BBDeviceController.Error error,
java.lang.String s)
` `void
onNoAudioDeviceDetected()
void``
onPowerButtonPressed()
void``
onPowerDown()
void``
onPrintDataCancelled()
void``
onPrintDataEnd()
void``
onRequestClearDisplay()
void``
onRequestDisplayAsterisk(int i)
void``
onRequestDisplayLEDIndicator(ContactlessStatus contactlessStatus)
void``
onRequestDisplayText(DisplayText displayText)
void``
onRequestFinalConfirm()
void``
onRequestOnlineProcess(java.lang.String s)
void``
onRequestPinEntry(PinEntrySource pinEntrySource)
void````
onRequestPrintData(int i,
boolean b)
` `void
onRequestProduceAudioTone(ContactlessStatusTone contactlessStatusTone)
void``
onRequestSelectApplication(java.util.ArrayList<java.lang.String> arrayList)
void``
onRequestSetAmount()
void``
onRequestStartEmv()
void``
onRequestTerminalTime()
void````
onReturnAccountSelectionResult(AccountSelectionResult accountSelectionResult,
int i)
` `void
onReturnAmount(java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
void``
onReturnAmountConfirmResult(boolean b)
void````
onReturnApduResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
` `void
onReturnBarcode(java.lang.String s)
void``
onReturnBatchData(java.lang.String s)
void``
onReturnCancelCheckCardResult(boolean b)
void``
onReturnCAPKDetail(CAPK capk)
void``
onReturnCAPKList(java.util.List list)
void``
onReturnCAPKLocation(java.lang.String s)
void````
onReturnCheckCardResult(CheckCardResult checkCardResult,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
``
void````
onReturnControlLEDResult(boolean b,
java.lang.String s)
` `void
onReturnDeviceInfo(java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
void``
onReturnDisableAccountSelectionResult(boolean b)
void``
onReturnDisableInputAmountResult(boolean b)
void````
onReturnEmvCardDataResult(boolean b,
java.lang.String s)
``
void````
onReturnEmvCardNumber(boolean b,
java.lang.String s)
` `void
onReturnEmvReport(java.lang.String s)
void``
onReturnEmvReportList(java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
void``
onReturnEnableAccountSelectionResult(boolean b)
void``
onReturnEnableInputAmountResult(boolean b)
void````
onReturnEncryptDataResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
``
void````
onReturnEncryptPinResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
``
void````
onReturnInjectSessionKeyResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
``
void````
onReturnNfcDataExchangeResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
``
void````
onReturnNfcDetectCardResult(NfcDetectCardResult nfcDetectCardResult,
java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
``
void````
onReturnPhoneNumber(PhoneEntryResult phoneEntryResult,
java.lang.String s)
``
void````
onReturnPinEntryResult(PinEntryResult pinEntryResult,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
` `void
onReturnPowerOffIccResult(boolean b)
void````
onReturnPowerOnIccResult(boolean b,
java.lang.String s,
java.lang.String s1,
int i)
` `void
onReturnPrintResult(PrintResult printResult)
void``
onReturnReadAIDResult(java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
void````
onReturnReadGprsSettingsResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
``
void````
onReturnReadTerminalSettingResult(TerminalSettingStatus terminalSettingStatus,
java.lang.String s)
``
void````
onReturnReadWiFiSettingsResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
` `void
onReturnReversalData(java.lang.String s)
void``
onReturnTransactionResult(TransactionResult transactionResult)
void``
onReturnUpdateAIDResult(java.util.Hashtable<java.lang.String,TerminalSettingStatus> hashtable)
void``
onReturnUpdateCAPKResult(boolean b)
void````
onReturnUpdateGprsSettingsResult(boolean b,
java.util.Hashtable<java.lang.String,TerminalSettingStatus> hashtable)
` `void
onReturnUpdateTerminalSettingResult(TerminalSettingStatus terminalSettingStatus)
void````
onReturnUpdateWiFiSettingsResult(boolean b,
java.util.Hashtable<java.lang.String,TerminalSettingStatus> hashtable)
``
void````
onReturnVasResult(VASResult vasResult,
java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
` `void
onSerialConnected()
void``
onSerialDisconnected()
void````
onSessionError(SessionError sessionError,
java.lang.String s)
` `void
onSessionInitialized()
void``
onUsbConnected()
void``
onUsbDisconnected()
void``
onWaitingForCard(CheckCardMode checkCardMode)
void``
onWaitingReprintOrPrintNext()
static void``
releaseController()
static void``
resetController()
void````
sendCommand(java.lang.String commandName,
java.lang.Object... params)
``
void````
subscribeSpecificEvent(java.lang.String eventName,
java.lang.Object listener)
``
void````
unsubscribeSpecificEvent(java.lang.String eventName,
java.lang.Object listener)
```
Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
Method Detail
getLastEvent
`public static java.lang.String getLastEvent()`
getInstance
`public static
BBPOSDeviceEventDispatch getInstance()`
getController
`public static BBDeviceController getController()`
sendCommand
```
public void sendCommand(java.lang.String commandName,
java.lang.Object... params)
throws java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException
```
Throws:`java.lang.NoSuchMethodException``java.lang.reflect.InvocationTargetException``java.lang.IllegalAccessException`
killCommand
`public void killCommand(java.lang.String commandToKill)`
subscribeSpecificEvent
```
public void subscribeSpecificEvent(java.lang.String eventName,
java.lang.Object listener)
```
unsubscribeSpecificEvent
```
public void unsubscribeSpecificEvent(java.lang.String eventName,
java.lang.Object listener)
```
onWaitingForCard
`public void onWaitingForCard(CheckCardMode checkCardMode)`
onWaitingReprintOrPrintNext
`public void onWaitingReprintOrPrintNext()`
onBTReturnScanResults
`public void onBTReturnScanResults(java.util.List<BluetoothDevice> list)`
onBTScanTimeout
`public void onBTScanTimeout()`
onBTScanStopped
`public void onBTScanStopped()`
onBTConnected
`public void onBTConnected(BluetoothDevice bluetoothDevice)`
onBTDisconnected
`public void onBTDisconnected()`
onUsbConnected
`public void onUsbConnected()`
onUsbDisconnected
`public void onUsbDisconnected()`
onSerialConnected
`public void onSerialConnected()`
onSerialDisconnected
`public void onSerialDisconnected()`
onReturnCheckCardResult
```
public void onReturnCheckCardResult(CheckCardResult checkCardResult,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
```
onReturnCancelCheckCardResult
`public void onReturnCancelCheckCardResult(boolean b)`
onReturnDeviceInfo
`public void onReturnDeviceInfo(java.util.Hashtable<java.lang.String,java.lang.String> hashtable)`
onReturnTransactionResult
`public void onReturnTransactionResult(TransactionResult transactionResult)`
onReturnBatchData
`public void onReturnBatchData(java.lang.String s)`
onReturnReversalData
`public void onReturnReversalData(java.lang.String s)`
onReturnAmountConfirmResult
`public void onReturnAmountConfirmResult(boolean b)`
onReturnPinEntryResult
```
public void onReturnPinEntryResult(PinEntryResult pinEntryResult,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
```
onReturnPrintResult
`public void onReturnPrintResult(PrintResult printResult)`
onReturnAccountSelectionResult
```
public void onReturnAccountSelectionResult(AccountSelectionResult accountSelectionResult,
int i)
```
onReturnAmount
`public void onReturnAmount(java.util.Hashtable<java.lang.String,java.lang.String> hashtable)`
onReturnUpdateAIDResult
`public void onReturnUpdateAIDResult(java.util.Hashtable<java.lang.String,TerminalSettingStatus> hashtable)`
onReturnUpdateGprsSettingsResult
```
public void onReturnUpdateGprsSettingsResult(boolean b,
java.util.Hashtable<java.lang.String,TerminalSettingStatus> hashtable)
```
onReturnUpdateTerminalSettingResult
`public void onReturnUpdateTerminalSettingResult(TerminalSettingStatus terminalSettingStatus)`
onReturnUpdateWiFiSettingsResult
```
public void onReturnUpdateWiFiSettingsResult(boolean b,
java.util.Hashtable<java.lang.String,TerminalSettingStatus> hashtable)
```
onReturnReadAIDResult
`public void onReturnReadAIDResult(java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)`
onReturnReadGprsSettingsResult
```
public void onReturnReadGprsSettingsResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
```
onReturnReadTerminalSettingResult
```
public void onReturnReadTerminalSettingResult(TerminalSettingStatus terminalSettingStatus,
java.lang.String s)
```
onReturnReadWiFiSettingsResult
```
public void onReturnReadWiFiSettingsResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
```
onReturnEnableAccountSelectionResult
`public void onReturnEnableAccountSelectionResult(boolean b)`
onReturnEnableInputAmountResult
`public void onReturnEnableInputAmountResult(boolean b)`
onReturnCAPKList
`public void onReturnCAPKList(java.util.List<CAPK> list)`
onReturnCAPKDetail
`public void onReturnCAPKDetail(CAPK capk)`
onReturnCAPKLocation
`public void onReturnCAPKLocation(java.lang.String s)`
onReturnUpdateCAPKResult
`public void onReturnUpdateCAPKResult(boolean b)`
onReturnEmvReportList
`public void onReturnEmvReportList(java.util.Hashtable<java.lang.String,java.lang.String> hashtable)`
onReturnEmvReport
`public void onReturnEmvReport(java.lang.String s)`
onReturnDisableAccountSelectionResult
`public void onReturnDisableAccountSelectionResult(boolean b)`
onReturnDisableInputAmountResult
`public void onReturnDisableInputAmountResult(boolean b)`
onReturnPhoneNumber
```
public void onReturnPhoneNumber(PhoneEntryResult phoneEntryResult,
java.lang.String s)
```
onReturnEmvCardDataResult
```
public void onReturnEmvCardDataResult(boolean b,
java.lang.String s)
```
onReturnEmvCardNumber
```
public void onReturnEmvCardNumber(boolean b,
java.lang.String s)
```
onReturnEncryptPinResult
```
public void onReturnEncryptPinResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
```
onReturnEncryptDataResult
```
public void onReturnEncryptDataResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
```
onReturnInjectSessionKeyResult
```
public void onReturnInjectSessionKeyResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
```
onReturnPowerOnIccResult
```
public void onReturnPowerOnIccResult(boolean b,
java.lang.String s,
java.lang.String s1,
int i)
```
onReturnPowerOffIccResult
`public void onReturnPowerOffIccResult(boolean b)`
onReturnApduResult
```
public void onReturnApduResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
```
onRequestSelectApplication
`public void onRequestSelectApplication(java.util.ArrayList<java.lang.String> arrayList)`
onRequestSetAmount
`public void onRequestSetAmount()`
onRequestPinEntry
`public void onRequestPinEntry(PinEntrySource pinEntrySource)`
onRequestOnlineProcess
`public void onRequestOnlineProcess(java.lang.String s)`
onRequestTerminalTime
`public void onRequestTerminalTime()`
onRequestDisplayText
`public void onRequestDisplayText(DisplayText displayText)`
onRequestDisplayAsterisk
`public void onRequestDisplayAsterisk(int i)`
onRequestDisplayLEDIndicator
`public void onRequestDisplayLEDIndicator(ContactlessStatus contactlessStatus)`
onRequestProduceAudioTone
`public void onRequestProduceAudioTone(ContactlessStatusTone contactlessStatusTone)`
onRequestClearDisplay
`public void onRequestClearDisplay()`
onRequestFinalConfirm
`public void onRequestFinalConfirm()`
onRequestPrintData
```
public void onRequestPrintData(int i,
boolean b)
```
onPrintDataCancelled
`public void onPrintDataCancelled()`
onPrintDataEnd
`public void onPrintDataEnd()`
onBatteryLow
`public void onBatteryLow(BatteryStatus batteryStatus)`
onAudioDevicePlugged
`public void onAudioDevicePlugged()`
onAudioDeviceUnplugged
`public void onAudioDeviceUnplugged()`
onError
```
public void onError(BBDeviceController.Error error,
java.lang.String s)
```
onSessionInitialized
`public void onSessionInitialized()`
onSessionError
```
public void onSessionError(SessionError sessionError,
java.lang.String s)
```
onAudioAutoConfigProgressUpdate
`public void onAudioAutoConfigProgressUpdate(double v)`
onAudioAutoConfigCompleted
```
public void onAudioAutoConfigCompleted(boolean b,
java.lang.String s)
```
onAudioAutoConfigError
`public void onAudioAutoConfigError(AudioAutoConfigError audioAutoConfigError)`
onNoAudioDeviceDetected
`public void onNoAudioDeviceDetected()`
onDeviceHere
`public void onDeviceHere(boolean b)`
onPowerDown
`public void onPowerDown()`
onPowerButtonPressed
`public void onPowerButtonPressed()`
onDeviceReset
`public void onDeviceReset()`
onEnterStandbyMode
`public void onEnterStandbyMode()`
onReturnNfcDataExchangeResult
```
public void onReturnNfcDataExchangeResult(boolean b,
java.util.Hashtable<java.lang.String,java.lang.String> hashtable)
```
onReturnNfcDetectCardResult
```
public void onReturnNfcDetectCardResult(NfcDetectCardResult nfcDetectCardResult,
java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
```
onReturnControlLEDResult
```
public void onReturnControlLEDResult(boolean b,
java.lang.String s)
```
onReturnVasResult
```
public void onReturnVasResult(VASResult vasResult,
java.util.Hashtable<java.lang.String,java.lang.Object> hashtable)
```
onRequestStartEmv
`public void onRequestStartEmv()`
onBarcodeReaderConnected
`public void onBarcodeReaderConnected()`
onBarcodeReaderDisconnected
`public void onBarcodeReaderDisconnected()`
onReturnBarcode
`public void onReturnBarcode(java.lang.String s)`
releaseController
`public static void releaseController()`
resetController
`public static void resetController()`