Tutorial: Layout.getCurrentSync

Layout.getCurrentSync

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

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