public class POBNativeAdRenderer extends java.lang.Object implements POBNativeAdRendering, POBNativeAdViewListener, com.pubmatic.sdk.common.utility.POBImageDownloadManager.POBImageDownloadListener
| Constructor and Description |
|---|
POBNativeAdRenderer(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the native ad renderer
|
void |
onAssetClicked(POBNativeAdView nativeAdView,
int assetId)
Notify the assets with certain Id in is clicked.
|
void |
onComplete(java.util.Map<java.lang.String,android.graphics.Bitmap> downloadedImages) |
void |
onRecordClick(POBNativeAdView nativeAdView)
Notify the POBNativeAdView is clicked.
|
void |
onRecordImpression(POBNativeAdView nativeAdView)
Notify the POBNativeAdView is attached to view and the impression is occurred.
|
void |
renderAd(POBNativeAdResponse descriptor,
POBNativeTemplateView templateView)
It starts the rendering of the native ad with the provided ad descriptor.
|
void |
setAdRendererListener(POBNativeRendererListener listener)
Sets the ad renderer listener
|
void |
setNativeMeasurementProvider(com.pubmatic.sdk.common.viewability.POBNativeMeasurementProvider openMeasurementProvider)
Sets the open measurement listener
|
public POBNativeAdRenderer(@NonNull
android.content.Context context)
public void renderAd(@NonNull
POBNativeAdResponse descriptor,
@NonNull
POBNativeTemplateView templateView)
POBNativeAdRenderingrenderAd in interface POBNativeAdRenderingdescriptor - ad descriptortemplateView - template view to render native adpublic void setAdRendererListener(@Nullable
POBNativeRendererListener listener)
POBNativeAdRenderingsetAdRendererListener in interface POBNativeAdRenderinglistener - ad renderer listenerpublic void setNativeMeasurementProvider(@Nullable
com.pubmatic.sdk.common.viewability.POBNativeMeasurementProvider openMeasurementProvider)
POBNativeAdRenderingsetNativeMeasurementProvider in interface POBNativeAdRenderingopenMeasurementProvider - ad renderer listenerpublic void destroy()
POBNativeAdRenderingdestroy in interface POBNativeAdRenderingpublic void onRecordImpression(@NonNull
POBNativeAdView nativeAdView)
POBNativeAdViewListeneronRecordImpression in interface POBNativeAdViewListenernativeAdView - instance of POBNativeAdViewpublic void onRecordClick(@NonNull
POBNativeAdView nativeAdView)
POBNativeAdViewListeneronRecordClick in interface POBNativeAdViewListenernativeAdView - instance of POBNativeAdViewpublic void onAssetClicked(@NonNull
POBNativeAdView nativeAdView,
int assetId)
POBNativeAdViewListeneronAssetClicked in interface POBNativeAdViewListenernativeAdView - instance of POBNativeAdViewassetId - Id of the asset which is clicked.public void onComplete(@NonNull
java.util.Map<java.lang.String,android.graphics.Bitmap> downloadedImages)
onComplete in interface com.pubmatic.sdk.common.utility.POBImageDownloadManager.POBImageDownloadListener