ContentsquareWebViewTrackerBuilder constructor
const
ContentsquareWebViewTrackerBuilder({
- Key? key,
- required Widget builder(
- BuildContext context,
- ContentsquareWebViewTracker tracker
Creates a widget which provides a tracker to track a WebView from any package.
For the tracking to work, you need to:
- Enable javascript in the WebView.
- Register the given ContentsquareWebViewTracker.javascriptChannels to allow the webview to communicate with the SDK.
- Use ContentsquareWebViewTracker.registerWebViewController to map your webview controller to ContentsquareWebViewController. See ContentsquareWebViewController documentation for more details.
- Use ContentsquareWebViewTracker.startPageTracking to start the tracking. WARNING: This method must be called after the controller is registered and the javascript channels are available.
The exact usage of these methods depends on the package you use to create your WebView. Reach out to us if you need help.
Implementation
const ContentsquareWebViewTrackerBuilder({
Key? key,
required this.builder,
}) : super(key: key);