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, removeObserver
public static final java.lang.String ACTION_USB_PERMISSION
public static final java.lang.String TAG
public void initializeConnection()
ICloverTransport
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void dispose()
ICloverTransport
dispose
in interface ICloverTransport
dispose
in class CloverTransport
public int sendMessage(java.lang.String message) throws java.nio.channels.NotYetConnectedException
ICloverTransport
message
- encoded message to sendjava.nio.channels.NotYetConnectedException
- if the message is sent when the underlying transport is not connected