JavaScriptReplyProxy class

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.

Constructors

JavaScriptReplyProxy({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.
JavaScriptReplyProxy.fromPlatform({required PlatformJavaScriptReplyProxy platform})
Constructs a JavaScriptReplyProxy from a specific platform implementation.
JavaScriptReplyProxy.fromPlatformCreationParams({required PlatformJavaScriptReplyProxyCreationParams params})
Constructs a JavaScriptReplyProxy.

Properties

hashCode int
The hash code for this object.
no setterinherited
platform PlatformJavaScriptReplyProxy
Implementation of PlatformJavaScriptReplyProxy for the current platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postMessage(WebMessage message) Future<void>
Post a message to the injected JavaScript object which sent this PlatformJavaScriptReplyProxy.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited