Tutorial: Layout.getCurrent

Layout.getCurrent

Asynchronously returns a Layout object that represents the current window's Layout. Cannot be called from a View.

const layout = await fin.Platform.Layout.getCurrent();
// Use wrapped instance to control layout, e.g.:
const layoutConfig = await layout.getConfig();