Class DualDisplayCloverTransport
java.lang.Object
com.clover.remote.client.transport.CloverTransport
com.clover.remote.client.transport.usb.DualDisplayCloverTransport
- All Implemented Interfaces:
ICloverTransport
-
Field Summary
Fields inherited from class com.clover.remote.client.transport.CloverTransport
DEVICE_CONNECTED, DEVICE_DISCONNECTED, DEVICE_READY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddispose()Closes the connection to the underlying transportvoidInitializes the connection using the underlying transportintsendMessage(String message) Sends the specified encoded messageMethods inherited from class com.clover.remote.client.transport.CloverTransport
addObserver, getRemoteMessageVersion, notifyDeviceConnected, notifyDeviceDisconnected, notifyDeviceReady, onMessage, removeObserver
-
Constructor Details
-
DualDisplayCloverTransport
public DualDisplayCloverTransport(android.content.Context context)
-
-
Method Details
-
initializeConnection
public void initializeConnection()Description copied from interface:ICloverTransportInitializes the connection using the underlying transport -
dispose
public void dispose()Description copied from interface:ICloverTransportCloses the connection to the underlying transport- Specified by:
disposein interfaceICloverTransport- Overrides:
disposein classCloverTransport
-
closeContentClient
public void closeContentClient() -
sendMessage
Description copied from interface:ICloverTransportSends the specified encoded message- Parameters:
message- encoded message to send- Returns:
- 0 if successful, -1 if failure
- Throws:
NotYetConnectedException- if the message is sent when the underlying transport is not connected
-