setState

Used to get the state of the hosting entity (a page where an app is embedded or the widget containing an iframe)

Syntax

import messageHandler from '@vcita/intandem-app-com';	

// ...initialize the handler

messageHandler.setState("Ready").then(function(state){//do something});

Parameters

  1. state WidgetState:

Available states

StateDescription
readyThe widget is ready to accept the init object