PlatformWebMessageListener class abstract
This listener receives messages sent on the JavaScript object which was injected by PlatformInAppWebViewController.addWebMessageListener.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS
- MacOS
- Inheritance
-
- Object
- PlatformInterface
- PlatformWebMessageListener
- Implemented types
Constructors
- PlatformWebMessageListener(PlatformWebMessageListenerCreationParams params)
-
Creates a new PlatformWebMessageListener
factory
- PlatformWebMessageListener.implementation(PlatformWebMessageListenerCreationParams params)
- Used by the platform implementation to create a new PlatformWebMessageListener.
Properties
-
allowedOriginRules
→ Set<
String> ? -
A set of matching rules for the allowed origins.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- jsObjectName → String
-
The name for the injected JavaScript object.
no setter
- onPostMessage → OnPostMessageCallback?
-
Event that receives a message sent by a
postMessage()
on the injected JavaScript object.no setter - params → PlatformWebMessageListenerCreationParams
-
The parameters used to initialize the PlatformWebMessageListener.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited