public class USBCloverTransport extends CloverTransport
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_USB_PERMISSION |
static java.lang.String |
TAG |
DEVICE_CONNECTED, DEVICE_DISCONNECTED, DEVICE_READY| Constructor and Description |
|---|
USBCloverTransport(android.content.Context ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Closes the connection to the underlying transport
|
protected void |
finalize() |
void |
initializeConnection()
Initializes the connection using the underlying transport
|
int |
sendMessage(java.lang.String message)
Sends the specified encoded message
|
addObserver, getRemoteMessageVersion, notifyDeviceConnected, notifyDeviceDisconnected, notifyDeviceReady, onMessage, removeObserverpublic static final java.lang.String ACTION_USB_PERMISSION
public static final java.lang.String TAG
public void initializeConnection()
ICloverTransportprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void dispose()
ICloverTransportdispose in interface ICloverTransportdispose in class CloverTransportpublic int sendMessage(java.lang.String message)
throws java.nio.channels.NotYetConnectedException
ICloverTransportmessage - encoded message to sendjava.nio.channels.NotYetConnectedException - if the message is sent when the underlying transport is not connected