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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onAdReceived(@NonNull() POBNativeAdLoader adLoader, @NonNull() POBNativeAd nativeAd) Notifies the callback that an ad has been successfully loaded.
      abstract void onFailedToLoad(@NonNull() POBNativeAdLoader adLoader, @NonNull() POBError error) Notifies the callback of an error encountered while loading an ad.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 loaded
        nativeAd - 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 loaded
        error - The error encountered while attempting to receive the ad.