Public Member Functions | |
void | start () |
void | stop () |
void | sendMenuCommand (MenuCommand msg) throws IOException |
String | getConnectionName () |
void | registerConnectorListener (RemoteConnectorListener listener) |
void | registerConnectionChangeListener (ConnectionChangeListener listener) |
void | close () |
boolean | isDeviceConnected () |
RemoteInformation | getRemoteParty () |
AuthStatus | getAuthenticationStatus () |
Public Member Functions inherited from com.thecoderscorner.menu.remote.RemoteDevice | |
String | getUserName () |
This is the base interface implemented by all remote connectors, it provides the means to both send and receive menu commands. Most people just wanting to use a menu remotely won't need to understand the connector layer beyond creating a connector.
void com.thecoderscorner.menu.remote.RemoteConnector.close | ( | ) |
Force close a connection when its known to be bad, the connector will try and establish a new connection.
Implemented in com.thecoderscorner.menu.remote.StreamRemoteConnector, and com.thecoderscorner.menu.remote.socket.SocketBasedConnector.
AuthStatus com.thecoderscorner.menu.remote.RemoteConnector.getAuthenticationStatus | ( | ) |
Implemented in com.thecoderscorner.menu.remote.StreamRemoteConnector.
String com.thecoderscorner.menu.remote.RemoteConnector.getConnectionName | ( | ) |
Gets the name of this connector locally
Implements com.thecoderscorner.menu.remote.RemoteDevice.
Implemented in com.thecoderscorner.menu.remote.socket.SocketBasedConnector.
RemoteInformation com.thecoderscorner.menu.remote.RemoteConnector.getRemoteParty | ( | ) |
Implemented in com.thecoderscorner.menu.remote.StreamRemoteConnector.
boolean com.thecoderscorner.menu.remote.RemoteConnector.isDeviceConnected | ( | ) |
Indicates if the underlying device is actually connected.
Implemented in com.thecoderscorner.menu.remote.socket.SocketBasedConnector.
void com.thecoderscorner.menu.remote.RemoteConnector.registerConnectionChangeListener | ( | ConnectionChangeListener | listener | ) |
Register for information about connection state
listener | the listener |
Implemented in com.thecoderscorner.menu.remote.StreamRemoteConnector.
void com.thecoderscorner.menu.remote.RemoteConnector.registerConnectorListener | ( | RemoteConnectorListener | listener | ) |
register a listener that will receive any messages sent by the menu library
listener | the listener |
Implemented in com.thecoderscorner.menu.remote.StreamRemoteConnector.
void com.thecoderscorner.menu.remote.RemoteConnector.sendMenuCommand | ( | MenuCommand | msg | ) | throws IOException |
Sends a command to the menu library running on the embedded hardware. If not connected the action is connector dependent.
msg | the message to send. |
void com.thecoderscorner.menu.remote.RemoteConnector.start | ( | ) |
Starts the communication channel, so it will attempt to connect with the configured device
Implemented in com.thecoderscorner.menu.remote.socket.SocketBasedConnector.
void com.thecoderscorner.menu.remote.RemoteConnector.stop | ( | ) |
Stops the library and attempts to also stop any threads and other resources associated.
Implemented in com.thecoderscorner.menu.remote.socket.SocketBasedConnector.