public class POBNativeAdRenderer
extends java.lang.Object
implements com.pubmatic.sdk.nativead.renderer.POBNativeAdRendering, com.pubmatic.sdk.nativead.POBNativeAdViewListener, com.pubmatic.sdk.common.utility.POBImageDownloadManager.POBImageDownloadListener
| Constructor and Description |
|---|
POBNativeAdRenderer(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the native ad renderer
|
void |
enableDsaIcon(boolean dsaIconEnabled)
Set DSA icon should be rendereded or not
Default value is false, i.e.
|
void |
onAssetClicked(View adView,
int assetId)
Notify the assets with certain Id in is clicked.
|
void |
onComplete(java.util.Map<java.lang.String,Bitmap> downloadedImages)
Notifies the Positive event occurred on the dialog
|
void |
onNonAssetClicked(View nonAssetView,
java.lang.String id)
Notify the non-asset with certain id that got clicked.
|
void |
onRecordClick(View adView)
Notify the POBNativeAdView is clicked.
|
void |
onRecordImpression(View adView)
Notify the POBNativeAdView is attached to view and the impression is occurred.
|
void |
registerView(com.pubmatic.sdk.nativead.response.POBNativeAdResponse descriptor,
View adView,
java.util.List<View> list)
Register view for impression and click tracking
|
void |
renderAd(com.pubmatic.sdk.nativead.response.POBNativeAdResponse descriptor,
POBNativeTemplateView templateView)
It starts the rendering of the native ad with the provided ad descriptor.
|
void |
setAdRendererListener(com.pubmatic.sdk.nativead.renderer.POBNativeRendererListener listener)
Sets the ad renderer listener
|
void |
setNativeMeasurementProvider(com.pubmatic.sdk.common.viewability.POBNativeMeasurementProvider openMeasurementProvider)
Sets the open measurement listener
|
public void registerView(@NonNull
com.pubmatic.sdk.nativead.response.POBNativeAdResponse descriptor,
@NonNull
View adView,
@NonNull
java.util.List<View> list)
com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingregisterView in interface com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingdescriptor - POBNativeAdResponse instanceadView - native ad view containerlist - clickable asset viewspublic void enableDsaIcon(boolean dsaIconEnabled)
com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingenableDsaIcon in interface com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingdsaIconEnabled - true if DSA icon should be rendered, false otherwisepublic void renderAd(@NonNull
com.pubmatic.sdk.nativead.response.POBNativeAdResponse descriptor,
@NonNull
POBNativeTemplateView templateView)
com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingrenderAd in interface com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingdescriptor - ad descriptortemplateView - template view to render native adpublic void setAdRendererListener(@Nullable
com.pubmatic.sdk.nativead.renderer.POBNativeRendererListener listener)
com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingsetAdRendererListener in interface com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderinglistener - ad renderer listenerpublic void setNativeMeasurementProvider(@Nullable
com.pubmatic.sdk.common.viewability.POBNativeMeasurementProvider openMeasurementProvider)
com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingsetNativeMeasurementProvider in interface com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingopenMeasurementProvider - ad renderer listenerpublic void destroy()
com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingdestroy in interface com.pubmatic.sdk.nativead.renderer.POBNativeAdRenderingpublic void onRecordImpression(@NonNull
View adView)
com.pubmatic.sdk.nativead.POBNativeAdViewListeneronRecordImpression in interface com.pubmatic.sdk.nativead.POBNativeAdViewListeneradView - instance of ad viewpublic void onRecordClick(@NonNull
View adView)
com.pubmatic.sdk.nativead.POBNativeAdViewListeneronRecordClick in interface com.pubmatic.sdk.nativead.POBNativeAdViewListeneradView - instance of ad Viewpublic void onAssetClicked(@NonNull
View adView,
int assetId)
com.pubmatic.sdk.nativead.POBNativeAdViewListeneronAssetClicked in interface com.pubmatic.sdk.nativead.POBNativeAdViewListeneradView - instance of ad ViewassetId - Id of the asset which is clicked.public void onNonAssetClicked(@NonNull
View nonAssetView,
@NonNull
java.lang.String id)
com.pubmatic.sdk.nativead.POBNativeAdViewListeneronNonAssetClicked in interface com.pubmatic.sdk.nativead.POBNativeAdViewListenernonAssetView - that recorded click eventid - id of the view which is clickedpublic void onComplete(@NonNull
java.util.Map<java.lang.String,Bitmap> downloadedImages)
com.pubmatic.sdk.common.utility.POBImageDownloadManager.POBImageDownloadListeneronComplete in interface com.pubmatic.sdk.common.utility.POBImageDownloadManager.POBImageDownloadListenerdownloadedImages - map of url vs downloaded image bitmap