CardReaderController

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<

MeaningfulErrorListener>``

cardReaderConnectFailedListeners protected java.util.ArrayList<

GenericEventListener>``

cardReaderConnectingListeners protected java.util.ArrayList<

GenericEventListener>``

cardReaderDisconnectedListeners protected java.util.ArrayList<

MeaningfulErrorListener>``

cardReaderErrorEventListeners protected java.util.ArrayList<

MeaningfulMessageListener>``

cardReaderNotificationListener protected static

CardReader``

connectedReader protected static int``

DEFAULT_AUDIOJACK_CONNECTION_TIMEOUT protected static int``

DEFAULT_BLUETOOTH_CONNECTION_TIMEOUT protected static int``

DEFAULT_COMMAND_TIMEOUT protected static

ConnectionStatus``

deviceConnectionStatus protected static

CardReader``

enforcedCardReader`

Constructor Summary

  Constructor and Description`<span class="memberNameLink">

CardReaderController()`

Method Summary

  Modifier and TypeMethod and Description`abstract void``<span class="memberNameLink">

connectAudioJack() abstract void``

connectBluetooth(

MultipleBluetoothDevicesFoundListener listener) abstract void``

connectSpecificBluetoothDevice(BluetoothDevice device) abstract void``

disconnectReader() protected void``

fireCardReaderConnectedEvent(

CardReader d) protected void``

fireCardReaderConnectFailedEvent(

MeaningfulError d) protected void``

fireCardReaderConnectingEvent() protected void``

fireCardReaderDisconnectedEvent() protected void``

fireCardReaderErrorEvent(

MeaningfulError d) protected void``

fireCardReaderNotificationEvent(

MeaningfulMessage d) static

CardReader``

getConnectedReader() static

ConnectionStatus``

getConnectionStatus() static

CardReaderController``

getControllerFor(java.lang.Class deviceClass) static boolean``

isCardReaderConnected() abstract boolean``

isPollingForConnection() abstract void``

release() static void``

restrictConnectionTo(

CardReader specific)

CardReaderController``

subscribeOnCardReaderConnected(

GenericEventListenerWithParam<

CardReader> listener)

CardReaderController``

subscribeOnCardReaderConnectFailed(

MeaningfulErrorListener listener)

CardReaderController``

subscribeOnCardReaderConnecting(

GenericEventListener listener)

CardReaderController``

subscribeOnCardReaderDisconnected(

GenericEventListener listener)

CardReaderController``

subscribeOnCardReaderError(

MeaningfulErrorListener listener)

CardReaderController``

subscribeOnCardReaderNotification(

MeaningfulMessageListener listener)

CardReaderController``

unsubscribeOnCardReaderConnected(

GenericEventListenerWithParam<

CardReader> listener)

CardReaderController``

unsubscribeOnCardReaderConnectFailed(

MeaningfulErrorListener listener)

CardReaderController``

unsubscribeOnCardReaderConnecting(

GenericEventListener listener)

CardReaderController``

unsubscribeOnCardReaderDisconnected(

GenericEventListener listener)

CardReaderController``

unsubscribeOnCardReaderError(

MeaningfulErrorListener listener)

CardReaderController``

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(

MeaningfulMessage d)`