setStateUsed to get the state of the hosting entity (a page where an app is embedded or the widget containing an iframe)Syntax JavaScriptmessageHandler.setState("Ready").then(function(state){//do something}); Parameters state (String): Available states StateDescriptionreadyThe widget is ready to accept the init objectloadedThe widget has been loaded and should be presented to the user Updated 7 days ago Table of Contents Syntax Parameters