com.anywherecommerce.android.sdk.devices
Class CardReaderController
-
java.lang.Object
-
com.anywherecommerce.android.sdk.devices.CardReaderController
-
Direct Known Subclasses:BBPOSDeviceCardReaderController, RamblerDeviceManager-
public abstract class <span class="typeNameLabel">CardReaderController</span> extends java.lang.Object
Created by Admin on 9/10/2017.
Field Summary
Modifier and TypeField and Description`protected java.util.ArrayList<
GenericEventListenerWithParam<
CardReader>>``
cardReaderConnectedListeners
protected java.util.ArrayList<
cardReaderConnectFailedListeners
protected java.util.ArrayList<
cardReaderConnectingListeners
protected java.util.ArrayList<
cardReaderDisconnectedListeners
protected java.util.ArrayList<
cardReaderErrorEventListeners
protected java.util.ArrayList<
cardReaderNotificationListener
protected static
connectedReader
protected static int``
DEFAULT_AUDIOJACK_CONNECTION_TIMEOUT
protected static int``
DEFAULT_BLUETOOTH_CONNECTION_TIMEOUT
protected static int``
DEFAULT_COMMAND_TIMEOUT
protected static
deviceConnectionStatus
protected static
Constructor Summary
Constructor and Description`<span class="memberNameLink">
Method Summary
Modifier and TypeMethod and Description`abstract void``<span class="memberNameLink">
connectAudioJack()
abstract void``
MultipleBluetoothDevicesFoundListener listener)
abstract void``
connectSpecificBluetoothDevice(BluetoothDevice device)
abstract void``
disconnectReader()
protected void``
CardReader d)
protected void``
fireCardReaderConnectFailedEvent(
MeaningfulError d)
protected void``
fireCardReaderConnectingEvent()
protected void``
fireCardReaderDisconnectedEvent()
protected void``
MeaningfulError d)
protected void``
fireCardReaderNotificationEvent(
MeaningfulMessage d)
static
getConnectedReader()
static
getConnectionStatus()
static
getControllerFor(java.lang.Class deviceClass)
static boolean``
isCardReaderConnected()
abstract boolean``
isPollingForConnection()
abstract void``
release()
static void``
CardReader specific)
subscribeOnCardReaderConnected(
GenericEventListenerWithParam<
CardReader> listener)
subscribeOnCardReaderConnectFailed(
MeaningfulErrorListener listener)
subscribeOnCardReaderConnecting(
GenericEventListener listener)
subscribeOnCardReaderDisconnected(
GenericEventListener listener)
MeaningfulErrorListener listener)
subscribeOnCardReaderNotification(
MeaningfulMessageListener listener)
unsubscribeOnCardReaderConnected(
GenericEventListenerWithParam<
CardReader> listener)
unsubscribeOnCardReaderConnectFailed(
MeaningfulErrorListener listener)
unsubscribeOnCardReaderConnecting(
GenericEventListener listener)
unsubscribeOnCardReaderDisconnected(
GenericEventListener listener)
MeaningfulErrorListener listener)
unsubscribeOnCardReaderNotification(
MeaningfulMessageListener listener)`
Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
Field Detail
DEFAULT_BLUETOOTH_CONNECTION_TIMEOUT
`protected static int DEFAULT_BLUETOOTH_CONNECTION_TIMEOUT`
DEFAULT_AUDIOJACK_CONNECTION_TIMEOUT
`protected static int DEFAULT_AUDIOJACK_CONNECTION_TIMEOUT`
DEFAULT_COMMAND_TIMEOUT
`protected static int DEFAULT_COMMAND_TIMEOUT`
enforcedCardReader
`protected static
CardReader enforcedCardReader`
connectedReader
`protected static
CardReader connectedReader`
deviceConnectionStatus
`protected static
ConnectionStatus deviceConnectionStatus`
cardReaderConnectedListeners
`protected java.util.ArrayList<
GenericEventListenerWithParam<
CardReader>> cardReaderConnectedListeners`
cardReaderConnectingListeners
`protected java.util.ArrayList<
GenericEventListener> cardReaderConnectingListeners`
cardReaderDisconnectedListeners
`protected java.util.ArrayList<
GenericEventListener> cardReaderDisconnectedListeners`
cardReaderConnectFailedListeners
`protected java.util.ArrayList<
MeaningfulErrorListener> cardReaderConnectFailedListeners`
cardReaderErrorEventListeners
`protected java.util.ArrayList<
MeaningfulErrorListener> cardReaderErrorEventListeners`
cardReaderNotificationListener
`protected java.util.ArrayList<
MeaningfulMessageListener> cardReaderNotificationListener`
Constructor Detail
CardReaderController
`public CardReaderController()`
Method Detail
restrictConnectionTo
`public static void restrictConnectionTo(
CardReader specific)`
getControllerFor
`public static
CardReaderController getControllerFor(java.lang.Class deviceClass)`
getConnectedReader
`public static
CardReader getConnectedReader()`
isCardReaderConnected
`public static boolean isCardReaderConnected()`
getConnectionStatus
`public static
ConnectionStatus getConnectionStatus()`
disconnectReader
`public abstract void disconnectReader()`
connectAudioJack
`public abstract void connectAudioJack()`
connectBluetooth
`public abstract void connectBluetooth(
MultipleBluetoothDevicesFoundListener listener)`
connectSpecificBluetoothDevice
`public abstract void connectSpecificBluetoothDevice(BluetoothDevice device)`
release
`public abstract void release()`
isPollingForConnection
`public abstract boolean isPollingForConnection()`
subscribeOnCardReaderConnected
`public
CardReaderController subscribeOnCardReaderConnected(
GenericEventListenerWithParam<
CardReader> listener)`
unsubscribeOnCardReaderConnected
`public
CardReaderController unsubscribeOnCardReaderConnected(
GenericEventListenerWithParam<
CardReader> listener)`
fireCardReaderConnectedEvent
`protected void fireCardReaderConnectedEvent(
CardReader d)`
subscribeOnCardReaderConnecting
`public
CardReaderController subscribeOnCardReaderConnecting(
GenericEventListener listener)`
unsubscribeOnCardReaderConnecting
`public
CardReaderController unsubscribeOnCardReaderConnecting(
GenericEventListener listener)`
fireCardReaderConnectingEvent
`protected void fireCardReaderConnectingEvent()`
subscribeOnCardReaderDisconnected
`public
CardReaderController subscribeOnCardReaderDisconnected(
GenericEventListener listener)`
unsubscribeOnCardReaderDisconnected
`public
CardReaderController unsubscribeOnCardReaderDisconnected(
GenericEventListener listener)`
fireCardReaderDisconnectedEvent
`protected void fireCardReaderDisconnectedEvent()`
subscribeOnCardReaderConnectFailed
`public
CardReaderController subscribeOnCardReaderConnectFailed(
MeaningfulErrorListener listener)`
unsubscribeOnCardReaderConnectFailed
`public
CardReaderController unsubscribeOnCardReaderConnectFailed(
MeaningfulErrorListener listener)`
fireCardReaderConnectFailedEvent
`protected void fireCardReaderConnectFailedEvent(
MeaningfulError d)`
subscribeOnCardReaderError
`public
CardReaderController subscribeOnCardReaderError(
MeaningfulErrorListener listener)`
unsubscribeOnCardReaderError
`public
CardReaderController unsubscribeOnCardReaderError(
MeaningfulErrorListener listener)`
fireCardReaderErrorEvent
`protected void fireCardReaderErrorEvent(
MeaningfulError d)`
subscribeOnCardReaderNotification
`public
CardReaderController subscribeOnCardReaderNotification(
MeaningfulMessageListener listener)`
unsubscribeOnCardReaderNotification
`public
CardReaderController unsubscribeOnCardReaderNotification(
MeaningfulMessageListener listener)`
fireCardReaderNotificationEvent
`protected void fireCardReaderNotificationEvent(