Class PublisherListenersModel
-
- All Implemented Interfaces:
public final class PublisherListenersModelModel class that holds references to various listeners for native ad events. This class consolidates all publisher-defined listeners for easier management and callback dispatching.
-
-
Field Summary
Fields Modifier and Type Field Description private NativeAdEventListeneradEventListenerprivate VideoEventListenervideoEventListenerprivate InMobiNative.LockScreenListenerlockScreenListener
-
Constructor Summary
Constructors Constructor Description PublisherListenersModel()
-
Method Summary
Modifier and Type Method Description final NativeAdEventListenergetAdEventListener()Listener for native ad events such as ad loaded, ad failed to load, etc. final UnitsetAdEventListener(NativeAdEventListener adEventListener)Listener for native ad events such as ad loaded, ad failed to load, etc. final VideoEventListenergetVideoEventListener()Listener for video events such as video started, completed, etc. final UnitsetVideoEventListener(VideoEventListener videoEventListener)Listener for video events such as video started, completed, etc. final InMobiNative.LockScreenListenergetLockScreenListener()Listener for lock screen related events. final UnitsetLockScreenListener(InMobiNative.LockScreenListener lockScreenListener)Listener for lock screen related events. -
-
Method Detail
-
getAdEventListener
final NativeAdEventListener getAdEventListener()
Listener for native ad events such as ad loaded, ad failed to load, etc.
-
setAdEventListener
final Unit setAdEventListener(NativeAdEventListener adEventListener)
Listener for native ad events such as ad loaded, ad failed to load, etc.
-
getVideoEventListener
final VideoEventListener getVideoEventListener()
Listener for video events such as video started, completed, etc.
-
setVideoEventListener
final Unit setVideoEventListener(VideoEventListener videoEventListener)
Listener for video events such as video started, completed, etc.
-
getLockScreenListener
final InMobiNative.LockScreenListener getLockScreenListener()
Listener for lock screen related events.
-
setLockScreenListener
final Unit setLockScreenListener(InMobiNative.LockScreenListener lockScreenListener)
Listener for lock screen related events.
-
-
-
-