com.anywherecommerce.android.sdk.devices
Class CardReader
-
java.lang.Object
-
com.anywherecommerce.android.sdk.devices.PeripheralDevice
com.anywherecommerce.android.sdk.devices.CardReader -
Direct Known Subclasses:BBPOSDevice, Rambler-
public abstract class <span class="typeNameLabel">CardReader</span> extends
Created by Admin on 10/11/2017.
-
<a name="nested.class.summary"></a>
### Nested Class Summary
Modifier and TypeClass and Description`static class ``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.ConnectionMethod.html" title="enum in com.anywherecommerce.android.sdk.devices">CardReader.ConnectionMethod</a></span>`
<a name="field.summary"></a>
### Field Summary
Modifier and TypeField and Description`protected static
<a href="#com/anywherecommerce/android/sdk/GenericEventListenerWithParam.html" title="interface in com.anywherecommerce.android.sdk">GenericEventListenerWithParam</a><
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a>>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#connectCompleteHandler">connectCompleteHandler</a></span>` `protected static
<a href="#com/anywherecommerce/android/sdk/MeaningfulErrorListener.html" title="interface in com.anywherecommerce.android.sdk">MeaningfulErrorListener</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#connectErrorHandler">connectErrorHandler</a></span>` `protected static
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderConnectionListener.html" title="interface in com.anywherecommerce.android.sdk.devices">CardReaderConnectionListener</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#connectionListener">connectionListener</a></span>` `protected static
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderController.html" title="class in com.anywherecommerce.android.sdk.devices">CardReaderController</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#controller">controller</a></span>` `java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#emvKsn">emvKsn</a></span>` `java.util.EnumSet<
<a href="#com/anywherecommerce/android/sdk/devices/CardInterface.html" title="enum in com.anywherecommerce.android.sdk.devices">CardInterface</a>>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#interfaces">interfaces</a></span>` `java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#macKsn">macKsn</a></span>` `java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#pinKsn">pinKsn</a></span>` `java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#trackKsn">trackKsn</a></span>`
<a name="fields.inherited.from.class.com.anywherecommerce.android.sdk.devices.PeripheralDevice"></a>
### Fields inherited from class com.anywherecommerce.android.sdk.devices.[PeripheralDevice](#com/anywherecommerce/android/sdk/devices/PeripheralDevice.html "class in com.anywherecommerce.android.sdk.devices")
`
<a href="#com/anywherecommerce/android/sdk/devices/PeripheralDevice.html#batteryLevel">batteryLevel</a>,
<a href="#com/anywherecommerce/android/sdk/devices/PeripheralDevice.html#firmwareVersion">firmwareVersion</a>,
<a href="#com/anywherecommerce/android/sdk/devices/PeripheralDevice.html#productID">productID</a>,
<a href="#com/anywherecommerce/android/sdk/devices/PeripheralDevice.html#supportsOTAFirmwareUpdate">supportsOTAFirmwareUpdate</a>`
<a name="constructor.summary"></a>
### Constructor Summary
Constructor and Description`<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#CardReader-java.util.EnumSet-">CardReader</a></span>(java.util.EnumSet<
<a href="#com/anywherecommerce/android/sdk/devices/CardInterface.html" title="enum in com.anywherecommerce.android.sdk.devices">CardInterface</a>> availableInterfaces)`
<a name="method.summary"></a>
### Method Summary
Modifier and TypeMethod and Description`static <T extends
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a>><br></br>void````
<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#connect-BluetoothDevice-com.anywherecommerce.android.sdk.devices.CardReaderConnectionListener-">connect</a></span>(BluetoothDevice device,
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderConnectionListener.html" title="interface in com.anywherecommerce.android.sdk.devices">CardReaderConnectionListener</a><T> listener)
``` `static <T extends
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a>><br></br>void````
<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#connect-com.anywherecommerce.android.sdk.devices.CardReader.ConnectionMethod-com.anywherecommerce.android.sdk.devices.CardReaderConnectionListener-">connect</a></span>(
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.ConnectionMethod.html" title="enum in com.anywherecommerce.android.sdk.devices">CardReader.ConnectionMethod</a> method,
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderConnectionListener.html" title="interface in com.anywherecommerce.android.sdk.devices">CardReaderConnectionListener</a><T> listener)
``` `static <T extends
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a>><br></br>void``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#connect-com.anywherecommerce.android.sdk.devices.CardReaderConnectionListener-">connect</a></span>(
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderConnectionListener.html" title="interface in com.anywherecommerce.android.sdk.devices">CardReaderConnectionListener</a><T> listener)` `void``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#disconnect--">disconnect</a></span>()` `java.util.EnumSet<
<a href="#com/anywherecommerce/android/sdk/devices/CardInterface.html" title="enum in com.anywherecommerce.android.sdk.devices">CardInterface</a>>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#getCardInterfaces--">getCardInterfaces</a></span>()` `
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.ConnectionMethod.html" title="enum in com.anywherecommerce.android.sdk.devices">CardReader.ConnectionMethod</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#getConnectionMethod--">getConnectionMethod</a></span>()` `
<a href="#com/anywherecommerce/android/sdk/devices/ConnectionStatus.html" title="enum in com.anywherecommerce.android.sdk.devices">ConnectionStatus</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#getConnectionStatus--">getConnectionStatus</a></span>()` `protected static
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderController.html" title="class in com.anywherecommerce.android.sdk.devices">CardReaderController</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#getController--">getController</a></span>()` `abstract java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#getModelDisplayName--">getModelDisplayName</a></span>()` `java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#getSerialNumber--">getSerialNumber</a></span>()` `abstract
<a href="#com/anywherecommerce/android/sdk/devices/TransactionWorkflow.html" title="class in com.anywherecommerce.android.sdk.devices">TransactionWorkflow</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#getTransactionWorkflow-com.anywherecommerce.android.sdk.transactions.Transaction-">getTransactionWorkflow</a></span>(
<a href="#com/anywherecommerce/android/sdk/transactions/Transaction.html" title="interface in com.anywherecommerce.android.sdk.transactions">Transaction</a> t)` `boolean``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#isConnected--">isConnected</a></span>()` `boolean``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#isTestDevice--">isTestDevice</a></span>()` `void``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html#setEnabledInterfaces-java.util.EnumSet-">setEnabledInterfaces</a></span>(java.util.EnumSet<
<a href="#com/anywherecommerce/android/sdk/devices/CardInterface.html" title="enum in com.anywherecommerce.android.sdk.devices">CardInterface</a>> interfaces)`
<a name="methods.inherited.from.class.com.anywherecommerce.android.sdk.devices.PeripheralDevice"></a>
### Methods inherited from class com.anywherecommerce.android.sdk.devices.[PeripheralDevice](#com/anywherecommerce/android/sdk/devices/PeripheralDevice.html "class in com.anywherecommerce.android.sdk.devices")
`
<a href="#com/anywherecommerce/android/sdk/devices/PeripheralDevice.html#toString--">toString</a>`
<a name="methods.inherited.from.class.java.lang.Object"></a>
### Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`
-
<a name="field.detail"></a>
### Field Detail
<a name="emvKsn"></a>
#### emvKsn
`public java.lang.String emvKsn`
<a name="trackKsn"></a>
#### trackKsn
`public java.lang.String trackKsn`
<a name="pinKsn"></a>
#### pinKsn
`public java.lang.String pinKsn`
<a name="macKsn"></a>
#### macKsn
`public java.lang.String macKsn`
<a name="interfaces"></a>
#### interfaces
`public java.util.EnumSet<
<a href="#com/anywherecommerce/android/sdk/devices/CardInterface.html" title="enum in com.anywherecommerce.android.sdk.devices">CardInterface</a>> interfaces`
<a name="controller"></a>
#### controller
`protected static
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderController.html" title="class in com.anywherecommerce.android.sdk.devices">CardReaderController</a> controller`
<a name="connectionListener"></a>
#### connectionListener
`protected static
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderConnectionListener.html" title="interface in com.anywherecommerce.android.sdk.devices">CardReaderConnectionListener</a> connectionListener`
<a name="connectCompleteHandler"></a>
#### connectCompleteHandler
`protected static
<a href="#com/anywherecommerce/android/sdk/GenericEventListenerWithParam.html" title="interface in com.anywherecommerce.android.sdk">GenericEventListenerWithParam</a><
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a>> connectCompleteHandler`
<a name="connectErrorHandler"></a>
#### connectErrorHandler
`protected static
<a href="#com/anywherecommerce/android/sdk/MeaningfulErrorListener.html" title="interface in com.anywherecommerce.android.sdk">MeaningfulErrorListener</a> connectErrorHandler`
<a name="constructor.detail"></a>
### Constructor Detail
<a name="CardReader-java.util.EnumSet-"></a>
#### CardReader
`public CardReader(java.util.EnumSet<
<a href="#com/anywherecommerce/android/sdk/devices/CardInterface.html" title="enum in com.anywherecommerce.android.sdk.devices">CardInterface</a>> availableInterfaces)`
<a name="method.detail"></a>
### Method Detail
<a name="getConnectionMethod--"></a>
#### getConnectionMethod
`public
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.ConnectionMethod.html" title="enum in com.anywherecommerce.android.sdk.devices">CardReader.ConnectionMethod</a> getConnectionMethod()`
<a name="getConnectionStatus--"></a>
#### getConnectionStatus
`public
<a href="#com/anywherecommerce/android/sdk/devices/ConnectionStatus.html" title="enum in com.anywherecommerce.android.sdk.devices">ConnectionStatus</a> getConnectionStatus()`
<a name="getCardInterfaces--"></a>
#### getCardInterfaces
`public java.util.EnumSet<
<a href="#com/anywherecommerce/android/sdk/devices/CardInterface.html" title="enum in com.anywherecommerce.android.sdk.devices">CardInterface</a>> getCardInterfaces()`
<a name="setEnabledInterfaces-java.util.EnumSet-"></a>
#### setEnabledInterfaces
```
public void setEnabledInterfaces(java.util.EnumSet<
<a href="#com/anywherecommerce/android/sdk/devices/CardInterface.html" title="enum in com.anywherecommerce.android.sdk.devices">CardInterface</a>> interfaces)
throws
<a href="#com/anywherecommerce/android/sdk/devices/CardInterfaceNotSupportedException.html" title="class in com.anywherecommerce.android.sdk.devices">CardInterfaceNotSupportedException</a>,
<a href="#com/anywherecommerce/android/sdk/devices/CardInterfaceDisabledException.html" title="class in com.anywherecommerce.android.sdk.devices">CardInterfaceDisabledException</a>
```
Throws:`
<a href="#com/anywherecommerce/android/sdk/devices/CardInterfaceNotSupportedException.html" title="class in com.anywherecommerce.android.sdk.devices">CardInterfaceNotSupportedException</a>``
<a href="#com/anywherecommerce/android/sdk/devices/CardInterfaceDisabledException.html" title="class in com.anywherecommerce.android.sdk.devices">CardInterfaceDisabledException</a>`
<a name="disconnect--"></a>
#### disconnect
`public void disconnect()`
<a name="isConnected--"></a>
#### isConnected
`public boolean isConnected()`
<a name="getTransactionWorkflow-com.anywherecommerce.android.sdk.transactions.Transaction-"></a>
#### getTransactionWorkflow
`public abstract
<a href="#com/anywherecommerce/android/sdk/devices/TransactionWorkflow.html" title="class in com.anywherecommerce.android.sdk.devices">TransactionWorkflow</a> getTransactionWorkflow(
<a href="#com/anywherecommerce/android/sdk/transactions/Transaction.html" title="interface in com.anywherecommerce.android.sdk.transactions">Transaction</a> t)`
<a name="getSerialNumber--"></a>
#### getSerialNumber
`public java.lang.String getSerialNumber()`
<a name="isTestDevice--"></a>
#### isTestDevice
`public boolean isTestDevice()`
<a name="getModelDisplayName--"></a>
#### getModelDisplayName
`public abstract java.lang.String getModelDisplayName()`
<a name="getController--"></a>
#### getController
`protected static
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderController.html" title="class in com.anywherecommerce.android.sdk.devices">CardReaderController</a> getController()`
<a name="connect-com.anywherecommerce.android.sdk.devices.CardReaderConnectionListener-"></a>
#### connect
`public static <T extends
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a>> void connect(
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderConnectionListener.html" title="interface in com.anywherecommerce.android.sdk.devices">CardReaderConnectionListener</a><T> listener)`
<a name="connect-com.anywherecommerce.android.sdk.devices.CardReader.ConnectionMethod-com.anywherecommerce.android.sdk.devices.CardReaderConnectionListener-"></a>
#### connect
```
public static <T extends
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a>> void connect(
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.ConnectionMethod.html" title="enum in com.anywherecommerce.android.sdk.devices">CardReader.ConnectionMethod</a> method,
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderConnectionListener.html" title="interface in com.anywherecommerce.android.sdk.devices">CardReaderConnectionListener</a><T> listener)
```
<a name="connect-BluetoothDevice-com.anywherecommerce.android.sdk.devices.CardReaderConnectionListener-"></a>
#### connect
```
public static <T extends
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a>> void connect(BluetoothDevice device,
<a href="#com/anywherecommerce/android/sdk/devices/CardReaderConnectionListener.html" title="interface in com.anywherecommerce.android.sdk.devices">CardReaderConnectionListener</a><T> listener)
```