system.nav.getCurrentWindow
Description
Returns the path of the current "main screen" window, which is defined as the maximized window. With the Typical Navigation Strategy , there is only ever one maximized window at a time.
Syntax
system.nav. getCurrentWindow()
-
Parameters
none
-
Returns
String - The path of the current "main screen" window - the maximized window.
-
Scope
Client
Code Examples
Code Snippet
# This code could run in a global timer script.# After a 5-minute timeout, navigate back to the home screenif system.util.getInactivitySeconds()>300 and system.nav.getCurrentWindow()!="Home": system.nav.swapTo("Home")