# getApp

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

{% hint style="info" %}
Setting the resolution is a very niche function, but you can discover more about the app class by clicking below!
{% endhint %}

{% content-ref url="../classes/app" %}
[app](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/classes/app)
{% endcontent-ref %}
