Package com.mouseviator.fsuipc
Interface IFSUIPCListener
public interface IFSUIPCListener
This interface to be implemented to receive notifications from
FSUIPC library.
Use FSUIPC.addListener(com.mouseviator.fsuipc.IFSUIPCListener) to add implemented listener.- Author:
- Mouseviator
-
Method Summary
Modifier and Type Method Description voidonConnected()This function will be called once FSUIPC is connected.voidonDisconnected()This function will be called once FSUIPC is disconnected.voidonFail(int lastResult)This function will be called when FSUIPC functions return something other than OK value....voidonProcess(java.util.AbstractQueue<IDataRequest> arRequests)This function will be called every time the FSUIPC_Process function is being called.Ie.
-
Method Details
-
onConnected
void onConnected()This function will be called once FSUIPC is connected. -
onDisconnected
void onDisconnected()This function will be called once FSUIPC is disconnected. -
onProcess
This function will be called every time the FSUIPC_Process function is being called.Ie. every time the library actually instructs FSUIPC to exchange data.- Parameters:
arRequests- A queue of requests that has been processed. This will be only requests stored int the continual requests queue. The "one-time" requests queue is discarded after every successful processing.
-
onFail
void onFail(int lastResult)This function will be called when FSUIPC functions return something other than OK value....- Parameters:
lastResult- The last result code indicating what went wrong.
-