Tutorial: System.getFocusedWindow

System.getFocusedWindow

Retrieves currently focused window.

Example

fin.System.getFocusedWindow().then(winInfo => console.log(winInfo)).catch(err => console.log(err));