AndroidWebMessageListenerCreationParams class

Object specifying creation parameters for creating a AndroidWebMessageListener.

When adding additional fields make sure they can be null or have a default value to avoid breaking changes. See PlatformWebMessageListenerCreationParams for more information.

Annotations

Constructors

AndroidWebMessageListenerCreationParams.new({required Set<String> allowedOriginRules, required String jsObjectName, OnPostMessageCallback? onPostMessage})
Creates a new AndroidWebMessageListenerCreationParams instance.
const
AndroidWebMessageListenerCreationParams.fromPlatformWebMessageListenerCreationParams(PlatformWebMessageListenerCreationParams params)
Creates a AndroidWebMessageListenerCreationParams instance based on PlatformWebMessageListenerCreationParams.
factory

Properties

allowedOriginRules Set<String>
A set of matching rules for the allowed origins.
final
hashCode int
The hash code for this object.
no setterinherited
jsObjectName String
The name for the injected JavaScript object.
finalinherited
onPostMessage → OnPostMessageCallback?
Event that receives a message sent by a postMessage() on the injected JavaScript object.
finalinherited
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
toString() String
A string representation of this object.

Operators

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