-
public final class WebViewManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebViewManager.JavaScriptInterface
-
Field Summary
Fields Modifier and Type Field Description private WebViewManagerDelegatedelegate
-
Constructor Summary
Constructors Constructor Description WebViewManager(CMPUserPreferencesService userPreferences, CoroutineScope coroutineScope, NetworkMonitor networkMonitor)
-
Method Summary
Modifier and Type Method Description final WebViewManagerDelegategetDelegate()final UnitsetDelegate(WebViewManagerDelegate delegate)final WebViewcreateWebView(WeakReference<Activity> activityRef)final UnitloadConsentURL(String url, UseCase useCase, Function1<Result<Boolean>, Unit> completion)final UnithandleConsentReceived(String consent, JsonObject jsonObject)final UnitcancelOperations()final UnitperformRetry(Function1<Boolean, Unit> completion)final BooleanisWebViewDestroyed()-
-
Constructor Detail
-
WebViewManager
WebViewManager(CMPUserPreferencesService userPreferences, CoroutineScope coroutineScope, NetworkMonitor networkMonitor)
-
-
Method Detail
-
getDelegate
final WebViewManagerDelegate getDelegate()
-
setDelegate
final Unit setDelegate(WebViewManagerDelegate delegate)
-
createWebView
final WebView createWebView(WeakReference<Activity> activityRef)
-
loadConsentURL
final Unit loadConsentURL(String url, UseCase useCase, Function1<Result<Boolean>, Unit> completion)
-
handleConsentReceived
final Unit handleConsentReceived(String consent, JsonObject jsonObject)
-
cancelOperations
final Unit cancelOperations()
-
performRetry
final Unit performRetry(Function1<Boolean, Unit> completion)
-
isWebViewDestroyed
final Boolean isWebViewDestroyed()
-
-
-
-