Creates and starts a Platform and returns a wrapped and running Platform. The wrapped Platform methods can be used to launch content into the platform. Promise will reject if the platform is already running.
Example
try {
const platform = await fin.Platform.start({
uuid: 'platform-1',
autoShow: false,
defaultWindowOptions: {
stylesheetUrl: 'css-sheet-url',
cornerRounding: {
height: 10,
width: 10
}
}
});
console.log('Platform is running', platform);
} catch(e) {
console.error(e);
}