setState

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

Syntax

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

Parameters

  1. state (String):

Available states

StateDescription
readyThe widget is ready to accept the init object
loadedThe widget has been loaded and should be presented to the user