JavaScriptReplyProxy constructor

JavaScriptReplyProxy(
  1. {required PlatformWebMessageListener webMessageListener}
)

This class represents the JavaScript object injected by PlatformInAppWebViewController.addWebMessageListener. An instance will be given by PlatformWebMessageListener.onPostMessage. The app can use postMessage(String) to talk to the JavaScript context.

There is a 1:1 relationship between this object and the JavaScript object in a frame.

Implementation

JavaScriptReplyProxy({required PlatformWebMessageListener webMessageListener})
    : this.fromPlatformCreationParams(
          params: PlatformJavaScriptReplyProxyCreationParams(
              webMessageListener: webMessageListener));