Managing self
In NovaOS, apps are provided with an object to let the manage themselves. For example, closing your app window or changing to title in the window navigation bar.
Developers can use the myWindow
object to handle these. The myWindow
object is injected to all application windows and can be accessed within a greenflag
function.
An application cannot run scripts without an opened window in NovaOS2. Be sure to save important data while closing your application by itself.
It is highly unrecommended to block the user from managing aspects of your application.
Using myWindow
Here is an example script to close the current application.
Here is an example script to change the current application title in the app navigation bar.
Here is an example script to return the IDs of your app.
Last updated