Tutorial: system.removeEventListener

system.removeEventListener

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

  • desktop-icon-clicked
  • idle-state-changed
  • monitor-info-changed
  • session-changed

Example

fin.desktop.System.removeEventListener("monitor-info-changed", aRegisteredListener, function () {
    console.log("successful");
},function (err) {
    console.log("failure: " + err);
});