createWebInterfaceScript method Null safety
Creates a script that initialize the web interface.
- Parameter
webToken
The token to initialize Airbridge Web SDK. - Parameter
postMessageScript
The JavaScript code to post commands from web to app. - Return web interface script
Implementation
static Future<String?> createWebInterfaceScript({
required String webToken,
required String postMessageScript,
}) {
Logger.called('createWebInterfaceScript');
return _webInterface.createWebInterfaceScript(
webToken: webToken, postMessageScript: postMessageScript);
}