WebViewAndroidJavaScriptChannel class
Exposes a channel to receive calls from javaScript.
Constructors
- WebViewAndroidJavaScriptChannel(String channelName, JavascriptChannelRegistry javascriptChannelRegistry)
- Creates a WebViewAndroidJavaScriptChannel.
Properties
- channelName → String
-
Used to identify this object to receive messages from javaScript.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- javascriptChannelRegistry → JavascriptChannelRegistry
-
Manages named JavaScript channels and forwarding incoming messages on the correct channel.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copy(
) → JavaScriptChannel -
Instantiates and returns a functionally identical object to oneself.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postMessage(
String message) → void -
Callback method when javaScript calls
postMessage
on the object instance passed. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited