Handles H5 ad requests.
If using a WebView, use
H5AdsWebViewClient
instead of this class.
Otherwise, if using an alternative web view, create an instance of this class, and pass
every web request to
handleH5AdsRequest(String).
|
H5AdsRequestHandler(Context
context, OnH5AdsEventListener
onH5AdsEventListener)
Constructs an
H5AdsRequestHandler.
|
| void |
clearAdObjects()
Destroys all ads being managed by H5 ads.
|
| boolean | |
| boolean |
Constructs an H5AdsRequestHandler.
Destroys all ads being managed by H5 ads.
Note: This method has no effect on any ads instantiated by non-H5 APIs, such as
InterstitialAd
and RewardedAd.
Attempts to handle an H5 ads request.
Returns true if request is for H5 ads, false otherwise.