Tutorial: application.removeEventListener

application.removeEventListener

Removes a previously registered event listener from the specified event. Supported application event types are:

  • closed
  • crashed
  • error
  • not-responding
  • out-of-memory
  • responding
  • started
  • run-requested

Example

var application = fin.desktop.Application.getCurrent();

application.removeEventListener("closed", previousCallback, function () {
    console.log("The unregistration was successful");
}, function (err) {
    console.log("failure:", err);
});