Both types of functions are based on a derivate class from the LinkarEventListener interface.
This class must be defined by the programmer.
The interface will force the available callback methods to be defined and the user will decide in which of them he must implement his code, which will be executed when the requested operation finishes.
In the persistent functions, the instance of the derivate class (eventHandler) must be passed to the client object before using any of the asynchronous functions through the addLinkarClientEventListener event.
client.addLinkarClientEventListener(eventHandler);
In the direct functions you will have to pass an Arraylist as an argument that its unique element is the derivate class instance (eventhandler)
ArrayList listeners = new ArrayList();
listeners.add(eventHandler);
LinkarClt.ReadAsync(listeners, credentialsOptions, filename, recordIDs, dictClause, readOptions, customVars, receivetimeout);
|