Package com.pubmatic.sdk.nativead
Interface POBNativeAdLoaderListener
-
- All Implemented Interfaces:
@MainThread() public interface POBNativeAdLoaderListener
This is an interface for interaction with the POBNativeAdLoader instance. All messages are guaranteed to occur on the main thread.
-
-
Method Summary
Modifier and Type Method Description abstract voidonAdReceived(@NonNull() POBNativeAdLoader adLoader, @NonNull() POBNativeAd nativeAd)Notifies the callback that an ad has been successfully loaded. abstract voidonFailedToLoad(@NonNull() POBNativeAdLoader adLoader, @NonNull() POBError error)Notifies the callback of an error encountered while loading an ad. -
-
Method Detail
-
onAdReceived
abstract void onAdReceived(@NonNull() POBNativeAdLoader adLoader, @NonNull() POBNativeAd nativeAd)
Notifies the callback that an ad has been successfully loaded.
- Parameters:
adLoader- Instance of POBNativeAdLoader over which ad is loadednativeAd- Instance of POBNativeAd
-
onFailedToLoad
abstract void onFailedToLoad(@NonNull() POBNativeAdLoader adLoader, @NonNull() POBError error)
Notifies the callback of an error encountered while loading an ad.
- Parameters:
adLoader- Instance of POBNativeAdLoader over which ad is loadederror- The error encountered while attempting to receive the ad.
-
-
-
-