Page tree


com.pubmatic.sdk.banner

Class PMInterstitialAd

java.lang.Object
    com.pubmatic.sdk.banner.PMInterstitialAd
All Implemented Interfaces:
PMAdRendered

public class PMInterstitialAdextends java.lang.Object implements PMAdRendered

Nested Class Summary

Modifier and TypeClass and Description
static interface

PMInterstitialAd. InterstitialAdListener

Constructor Summary

Constructor and Description
PMInterstitialAd(android.content.Context context) Constructor

Method Summary

Modifier and TypeMethod and Description
void close()
void destroy() Resets instance state to it's default (doesn't destroy configured parameters).
PMInterstitialAd.InterstitialAdListener.ActivityListener getActivityListener()
PMInterstitialAd.InterstitialAdListener.FeatureSupportHandler getFeatureSupportHandler()
PMInterstitialAd.InterstitialAdListener.InternalBrowserListener getInternalBrowserListener()
PMInterstitialAd.InterstitialAdListener.RequestListener getRequestListener()
PMInterstitialAd.InterstitialAdListener.RichMediaListener getRichMediaListener()
android.view.View getView()
Boolean isReady()
void loadRequest(AdRequest adrequest)
void renderPrefetchedAd(java.lang.string impressionId, com.pubmatic.sdk.common.ResponseGenerator responseGenerator)
void setActivityListener(PMInterstitialAd.InterstitialAdListener.ActivityListener listener)
void setCloseButtonCustomDrawable(android.graphics.drawable.Drawable closeButtonCustomDrawable) Allows custom close buttons to override SDK default.
void setFeatureSupportHandler(PMInterstitialAd.InterstitialAdListener.FeatureSupportHandler handler)
void setInternalBrowserListener(PMInterstitialAd.InterstitialAdListener.InternalBrowserListener listener)
void setRequestListener(PMInterstitialAd.InterstitialAdListener.RequestListener listener)
void setRichMediaListener(PMInterstitialAd.InterstitialAdListener.RichMediaListener listener)
void setUseInternalBrowser(Boolean useInternalBrowser) Controls enablement of the internal browser.
void show()
void showCloseButtonAfterDelay(int closeButtonDelay)
void showForDuration(int durationSeconds)

Methods inherited from class java.lang.Object


clone, equals, finalize, getClass, hashCode, notify, notifyAll, tostring, wait, wait, wait

Constructor Detail


PMInterstitialAd

public PMInterstitialAd(android.content.Context context)

Constructor

Parameters:
context -

Method Detail


renderPrefetchedAd

public void renderPrefetchedAd(java.lang.string impressionId, com.pubmatic.sdk.common.ResponseGenerator responseGenerator)
Specified by:
renderPrefetchedAd in interface PMAdRendered

getActivityListener

public PMInterstitialAd.InterstitialAdListener.ActivityListener getActivityListener()

setActivityListener

public void setActivityListener(PMInterstitialAd.InterstitialAdListener.ActivityListener listener)

getFeatureSupportHandler

public PMInterstitialAd.InterstitialAdListener.FeatureSupportHandler getFeatureSupportHandler()

setFeatureSupportHandler

public void setFeatureSupportHandler(PMInterstitialAd.InterstitialAdListener.FeatureSupportHandler handler)

getInternalBrowserListener

public PMInterstitialAd.InterstitialAdListener.InternalBrowserListener getInternalBrowserListener()

setInternalBrowserListener

public void setInternalBrowserListener(PMInterstitialAd.InterstitialAdListener.InternalBrowserListener listener)

getRequestListener

public PMInterstitialAd.InterstitialAdListener.RequestListener getRequestListener()

setRequestListener

public void setRequestListener(PMInterstitialAd.InterstitialAdListener.RequestListener listener)

getRichMediaListener

public PMInterstitialAd.InterstitialAdListener.RichMediaListener getRichMediaListener()

setRichMediaListener

public void setRichMediaListener(PMInterstitialAd.InterstitialAdListener.RichMediaListener listener)

close

public void close()

loadRequest

public void loadRequest(AdRequest adrequest) throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

isReady

public Boolean isReady()

show

public void show()

showForDuration

public void showForDuration(int durationSeconds)

destroy

public void destroy()

Resets instance state to it's default (doesn't destroy configured parameters). Stops update interval timer, closes internal browser if open, disables location detection.

Invoke this method to stop any ad processing.

showCloseButtonAfterDelay

public void showCloseButtonAfterDelay(int closeButtonDelay)

Sets the delay time between showing an interstitial with show() and showing the close button. A value of 0 indicates the button should be shown immediately.

Parameters:
closeButtonDelay - Time interval in seconds to delay showing a close button after showing interstitial ad.

setUseInternalBrowser

public void setUseInternalBrowser(Boolean useInternalBrowser)

Controls enablement of the internal browser. If used, a dialog will be used to show a browser in the application for ads that are clicked on (that open URLs). If not used an intent is started to invoke the system browser (or whatever is configured to handle the intent).

Parameters:
useInternalBrowser - true to use the internal browser, false to not use the internal browser.

setCloseButtonCustomDrawable

public void setCloseButtonCustomDrawable(android.graphics.drawable.Drawable closeButtonCustomDrawable)

Allows custom close buttons to override SDK default. If set the provided drawable will be used for the close button for interstitial and rich media ads (if ad uses SDK provided close button).

Parameters:
closeButtonCustomDrawable - Drawable used to override the default close button image or null to use the default.

getView

public android.view.View getView()


⇧ Top