Asynchronously returns an API handle for the given Frame identity.
Wrapping a Frame identity that does not yet exist will not throw an error, and instead returns a stub object that cannot yet perform rendering tasks. This can be useful for plumbing eventing for a Frame throughout its entire lifecycle.
fin.Frame.wrap({ uuid: 'testFrame', name: 'testFrame' })
.then(frm => console.log('wrapped frame'))
.catch(err => console.log(err));
Synchronously returns an API handle for the given Frame identity.
Wrapping a Frame identity that does not yet exist will not throw an error, and instead returns a stub object that cannot yet perform rendering tasks. This can be useful for plumbing eventing for a Frame throughout its entire lifecycle.
const frm = fin.Frame.wrapSync({ uuid: 'testFrame', name: 'testFrame' });
const info = await frm.getInfo();
console.log(info);
Static namespace for OpenFin API methods that interact with the _Frame class, available under
fin.Frame
.