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
-
Field Summary
Fields Modifier and Type Field Description private final String
adUnitId
public final static MesonNative.Companion
Companion
-
Constructor Summary
Constructors Constructor Description MesonNative(Context context, String adUnitId)
-
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
-
-
Method Detail
-
getAdUnitId
final String getAdUnitId()
-
setAdListener
final Unit setAdListener(MesonNativeAdLoadListener loadListener)
-
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 loadstatus
- Represents the MesonAdRequestStatus status containing error reason
-
-
-
-