Tutorial: Platform.wrap

Platform.wrap

Asynchronously returns a Layout object that represents an existing Layout platform.

const { identity } = fin.Application.me;
const platform = await fin.Platform.wrap(identity);
// Use wrapped instance to control layout, e.g.:
const snapshot = await platform.getSnapshot();