Autoconsent

interface Autoconsent

Public interface for the Autoconsent (CMP) feature

Functions

Link copied to clipboard
abstract fun addJsInterface(webView: WebView, autoconsentCallback: AutoconsentCallback)

This method adds the JS interface for autoconsent to create a bridge between JS and our client. It requires a WebView instance and an AutoconsentCallback.

Link copied to clipboard
abstract fun changeSetting(setting: Boolean)

This method enables or disables autoconsent setting depending on the value passed.

Link copied to clipboard
abstract fun firstPopUpHandled()

This method stores a value so autoconsent knows the first pop-up was already handled.

Link copied to clipboard
abstract fun injectAutoconsent(webView: WebView, url: String)

This method injects the JS code needed to run autoconsent. It requires a WebView instance and the URL where the code will be injected.

Link copied to clipboard
Link copied to clipboard
abstract fun isSettingEnabled(): Boolean
Link copied to clipboard
abstract fun setAutoconsentOptIn()

This method sets autoconsent to opt in mode.

Link copied to clipboard
abstract fun setAutoconsentOptOut(webView: WebView)

This method sends and opt out message to autoconsent on the given WebView instance to set the opt out mode.