WebAd
Last updated
Last updated
package com.intowow.sdk
public class WebAd
Web View Ad format helps you to insert the ad into the web view without latency. User can see varies kinds of ads in web view.
Zero latency loading in web view.
Support image and video.
Video is mute by default, and can be toggled by clicking it.
Before showing the ad on the web view, we need to setup the WebAd object. The WebAd object can help intowow SDK interact with the web view.
Init the WebAd Object and register the object to the web view.
Override the shouldInterceptRequest and pass the intowow related url to intowow SDK. Our SDK will return the WebResourceResponse back to the WebView to insert the ad source.
Please destroy the instance when you no longer need to use it.
Please make sure to new an instance before requesting the ad.
Public constructors
Public methods
void
void
void
WebResourceResponse
Instantiates a new WebAd.
Parameters
context
Context: the context.
void destroy()
Release the WebAd.
void registerWebView(WebView webview)
Register web view for interaction.
Please called this function before load the page url.
void unregisterWebView(WebView webview)
Unregister web view when no long use.
WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request)
Pass the request path which related to intowow and return the webResourceResponse back to web view.
Instantiates a new webAd.
Release the native ad.
Register web view for interaction.
Unregister Web view.
Pass the request path which related to intowow and will return the webResourceResponse back to web view.