Class WebViewFactory
-
- All Implemented Interfaces:
public final class WebViewFactoryManages the lifecycle and creation of WebViews used for ad rendering.
This class provides functionality to create, register, and track WebViews used in the ad rendering process. It maintains a pool of active WebViews identified by unique IDs and supports creation of both standard and sibling WebViews depending on the requirements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceWebViewFactory.WebViewTypepublic classWebViewFactory.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Map<String, RenderView>poolOfWebViewspublic final static WebViewFactory.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description WebViewFactory(InMobiLogger logger)
-
Method Summary
Modifier and Type Method Description final Map<String, RenderView>getPoolOfWebViews()final Unitunregister(String id)final UnitpublishToAll(Function1<RenderView, Unit> action)final UnitpublishToSiblingWebViews(Function1<RenderViewSibling, Unit> action)final RenderViewcreateWebView(Route route, Context context, Short type, AdMetaData adMetaData, AdConfig adConfig)final RenderViewgetWebView(String id)-
-
Constructor Detail
-
WebViewFactory
WebViewFactory(InMobiLogger logger)
-
-
Method Detail
-
getPoolOfWebViews
final Map<String, RenderView> getPoolOfWebViews()
-
unregister
final Unit unregister(String id)
-
publishToAll
final Unit publishToAll(Function1<RenderView, Unit> action)
-
publishToSiblingWebViews
final Unit publishToSiblingWebViews(Function1<RenderViewSibling, Unit> action)
-
createWebView
final RenderView createWebView(Route route, Context context, Short type, AdMetaData adMetaData, AdConfig adConfig)
-
getWebView
final RenderView getWebView(String id)
-
-
-
-