getApp

API - returns the App class which gives access to a group of functions and properties related to SA application.

return function()
    local app = getApp();
    app.setResolution(900, 900); --sets the app window resolution to 900 by 900
end

Setting the resolution is a very niche function, but you can discover more about the app class by clicking below!

pageApp

Last updated