Package com.naver.ads.webview
Class BaseAdWebViewController
-
- All Implemented Interfaces:
-
com.naver.ads.webview.AdWebViewController
public abstract class BaseAdWebViewController<TAdWebView extends AdWebView> implements AdWebViewController
-
-
Field Summary
Fields Modifier and Type Field Description private final ContextapplicationContextprivate final ContextsuggestedContextprivate final FrameLayoutadWebViewContainerprivate final TAdWebViewadWebViewprivate final AdWebViewControllerListenerlistenerprivate final AdWebViewRenderingOptionsrenderingOptions
-
Constructor Summary
Constructors Constructor Description BaseAdWebViewController(Context context, AdWebViewRenderingOptions renderingOptions)
-
Method Summary
Modifier and Type Method Description final ContextgetApplicationContext()final ContextgetSuggestedContext()final FrameLayoutgetAdWebViewContainer()The ViewGroup contains AdWebView. final TAdWebViewgetAdWebView()final AdWebViewControllerListenergetListener()final AdWebViewRenderingOptionsgetRenderingOptions()final UnitfillContent(String html)Creates a AdWebView and fills it with given html. abstract UnitfillContentInternal(AdWebView adWebView, String html)final Unitpause(Boolean isFinishing)final Unitresume()Unitdestroy()Destroys this controller. final UnitsetControllerListener(AdWebViewControllerListener listener)abstract UnithandleSuccessToLoad()abstract UnithandleFailedToLoad(AdWebViewErrorCode errorCode)abstract UnithandleAdCommanded(Uri uri)abstract UnithandleConfigurationChange()abstract TAdWebViewcreateAdWebView()-
-
Constructor Detail
-
BaseAdWebViewController
BaseAdWebViewController(Context context, AdWebViewRenderingOptions renderingOptions)
-
-
Method Detail
-
getApplicationContext
final Context getApplicationContext()
-
getSuggestedContext
final Context getSuggestedContext()
-
getAdWebViewContainer
final FrameLayout getAdWebViewContainer()
-
getAdWebView
final TAdWebView getAdWebView()
-
getListener
final AdWebViewControllerListener getListener()
-
getRenderingOptions
final AdWebViewRenderingOptions getRenderingOptions()
-
fillContent
final Unit fillContent(String html)
Creates a AdWebView and fills it with given html.
- Parameters:
html- the HTML of the ad.
-
fillContentInternal
abstract Unit fillContentInternal(AdWebView adWebView, String html)
-
setControllerListener
final Unit setControllerListener(AdWebViewControllerListener listener)
-
handleSuccessToLoad
abstract Unit handleSuccessToLoad()
-
handleFailedToLoad
abstract Unit handleFailedToLoad(AdWebViewErrorCode errorCode)
-
handleAdCommanded
abstract Unit handleAdCommanded(Uri uri)
-
handleConfigurationChange
abstract Unit handleConfigurationChange()
-
createAdWebView
abstract TAdWebView createAdWebView()
-
-
-
-