on

Function on 

Source
pub fn on(event_name: &str, callback: &Function)
Expand description

Interface for accessing display & monitor layout information. For usage example please refer to nw_sys::screen

§Events:

  • displayBoundsChanged (screen)
  • displayAdded (screen)
  • displayRemoved (screen)

NWJS Documentation