PlatformJavaScriptReplyProxy class abstract
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.
- Inheritance
-
- Object
- PlatformInterface
- PlatformJavaScriptReplyProxy
Constructors
- PlatformJavaScriptReplyProxy(PlatformJavaScriptReplyProxyCreationParams params)
-
Creates a new PlatformWebMessageListener
factory
- PlatformJavaScriptReplyProxy.implementation(PlatformJavaScriptReplyProxyCreationParams params)
- Used by the platform implementation to create a new PlatformJavaScriptReplyProxy.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- params → PlatformJavaScriptReplyProxyCreationParams
-
The parameters used to initialize the PlatformJavaScriptReplyProxy.
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