Interface NativeAd.NativeAdListener

    • 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 onClick(@Nullable() View clickedView, @NonNull() NativeAd ad) Calls when user clicks on ad creative
      abstract void onClick(@NonNull() NativeAd ad) This method will never be called by SDK, and it will be removed.
      abstract void onLoad(@NonNull() NativePromoBanner banner, @NonNull() NativeAd ad) Calls if the data is loaded successfully.
      abstract void onNoAd(@NonNull() IAdLoadingError adLoadingError, @NonNull() NativeAd ad) Calls if no data received
      abstract void onShow(@NonNull() NativeAd ad) Calls when ad appears on screen
      abstract void onVideoComplete(@NonNull() NativeAd ad) Calls when video inside banner completes playing
      abstract void onVideoPause(@NonNull() NativeAd ad) Calls when video inside banner paused
      abstract void onVideoPlay(@NonNull() NativeAd ad) Calls when video inside banner starts playing.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onClick

         abstract void onClick(@Nullable() View clickedView, @NonNull() NativeAd ad)

        Calls when user clicks on ad creative

        Parameters:
        clickedView - view on which onClick was triggered.
        ad - current instance
      • onClick

        @Deprecated() abstract void onClick(@NonNull() NativeAd ad)

        This method will never be called by SDK, and it will be removed.

      • onLoad

         abstract void onLoad(@NonNull() NativePromoBanner banner, @NonNull() NativeAd ad)

        Calls if the data is loaded successfully.

        Parameters:
        banner - banner model
        ad - current instance
      • onNoAd

         abstract void onNoAd(@NonNull() IAdLoadingError adLoadingError, @NonNull() NativeAd ad)

        Calls if no data received

        Parameters:
        adLoadingError - reason for not receiving ad
        ad - current instance
      • onShow

         abstract void onShow(@NonNull() NativeAd ad)

        Calls when ad appears on screen

        Parameters:
        ad - current instance
      • onVideoComplete

        @Deprecated() abstract void onVideoComplete(@NonNull() NativeAd ad)

        Calls when video inside banner completes playing

        Parameters:
        ad - current instance
      • onVideoPause

        @Deprecated() abstract void onVideoPause(@NonNull() NativeAd ad)

        Calls when video inside banner paused

        Parameters:
        ad - current instance
      • onVideoPlay

        @Deprecated() abstract void onVideoPlay(@NonNull() NativeAd ad)

        Calls when video inside banner starts playing. Method called once.

        Parameters:
        ad - current instance