Tutorial: externalApplication.addEventListener

externalApplication.addEventListener

Registers an event listener on the specified event. Supported external application event types are:

  • connected
  • disconnected

Example

let externalApp = fin.desktop.ExternalApp.wrap('my-uuid');

externalApp.addEventListener('connected', () => {
    console.log('external app connected');
}, function () {
    console.log('The registration was successful');
}, (reason, err) => {
    console.log(`Error Message: ${err.message} Error Stack: ${err.stack}`);
});