Package ai.meson.ads

Class MesonNative

  • All Implemented Interfaces:

    
    public class MesonNative
    extends NativeAdListener
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class MesonNative.Companion
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getAdUnitId()
      final Unit load()
      final Unit setAdListener(MesonNativeAdLoadListener loadListener)
      Unit onAdLoadSucceeded(NativeAd ad) Called to notify that an ad was successfully loaded and is ready to be displayed.
      Unit onAdLoadFailed(NativeAd ad, MesonAdRequestStatus status) Called to notify that a request to load an ad failed.
      final Unit destroy()
      • Methods inherited from class ai.meson.ads.listeners.NativeAdListener

        onVideoCompleted, onVideoPaused, onVideoResumed, onVideoStarted
      • Methods inherited from class ai.meson.ads.listeners.AdListener

        onAdClicked, onAdImpression, onUserLeftApplication
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onAdLoadSucceeded

         Unit onAdLoadSucceeded(NativeAd ad)

        Called to notify that an ad was successfully loaded and is ready to be displayed.

        Parameters:
        ad - Represents the ad which was loaded
      • onAdLoadFailed

         Unit onAdLoadFailed(NativeAd ad, MesonAdRequestStatus status)

        Called to notify that a request to load an ad failed.

        Parameters:
        ad - Represents the ad which failed to load
        status - Represents the MesonAdRequestStatus status containing error reason