Creates a new View entity.
Example
let view;
async function createView() {
const me = await fin.Window.getCurrent();
return fin.View.create({
name: 'viewNameCreate',
target: me.identity,
bounds: {top: 10, left: 10, width: 200, height: 200}
});
}
createView()
.then((createdView) => {
view = createdView;
console.log('View created.', view);
view.navigate('https://google.com');
console.log('View navigated to given url.');
})
.catch(err => console.log(err));
Note that created views needs to navigate somewhere for them to actually render a website.