WebViewIntegration class

A utility class to integrate Snowplow tracking with a WebView. Parses incoming messages and tracks the events using a given tracker.

Constructors

WebViewIntegration.new({required SnowplowTracker tracker, bool ignoreTrackerNamespace = true})

Properties

channelName String
The name of the JavaScript channel expected from the WebView.
final
hashCode int
The hash code for this object.
no setterinherited
ignoreTrackerNamespace bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tracker SnowplowTracker
final

Methods

handleMessage(String msg) → void
Parses and handles an incoming message from the WebView, tracking the corresponding event.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerJavaScriptChannel(dynamic webViewController) → void
Registers the JavaScript channel with the WebView controller to receive tracking messages.
toString() String
A string representation of this object.
inherited

Operators

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