Tutorial: Platform.getCurrentSync

Platform.getCurrentSync

Synchronously returns a Layout object that represents the current Layout platform.

const platform = fin.Platform.getCurrentSync();
// Use wrapped instance to control layout, e.g.:
const snapshot = await platform.getSnapshot();