Tutorial: Platform.getCurrent

Platform.getCurrent

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

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