registerWebViewJavaScriptChannel method
void
registerWebViewJavaScriptChannel({
- required dynamic webViewController,
- bool ignoreTrackerNamespace = true,
Registers a JavaScript channel for the WebView to receive messages from the WebView.
The webViewController is the controller of the WebView
that will receive the messages.
The ignoreTrackerNamespace parameter indicates whether the
WebView should ignore the tracker namespace when tracking events.
If true, the WebView will track events for any tracker that sends them
to the WebView. If false, the WebView will only track events for this
tracker.
Implementation
void registerWebViewJavaScriptChannel(
{required dynamic webViewController,
bool ignoreTrackerNamespace = true}) {
getWebViewIntegration(ignoreTrackerNamespace: ignoreTrackerNamespace)
.registerJavaScriptChannel(webViewController);
}