Class NativeAdUnitManagerCallback
-
- All Implemented Interfaces:
public final class NativeAdUnitManagerCallback extends PublisherCallbacks
Callback handler for native ad unit manager events. This class extends PublisherCallbacks to handle various native ad lifecycle events and coordinate between the SDK and publisher-defined listeners.
-
-
Constructor Summary
Constructors Constructor Description NativeAdUnitManagerCallback(InMobiNative inMobiNative, PublisherListenersModel publisherListenersModel, NativeFlowManagerNotifier nativeFlowManagerNotifier)
-
Method Summary
Modifier and Type Method Description BytegetType()UnitonAdFetchSuccessful(AdMetaInfo info)UnitonAdFetchFailed(InMobiAdRequestStatus status)final UnitonAdLoadSucceeded(NativePubData pubData, AdMetaInfo info)Called when the native ad has been successfully loaded with data. UnitonAdLoadFailed(InMobiAdRequestStatus status)UnitonAdDisplayed(AdMetaInfo info)UnitonAdDismissed()UnitonAdClicked(Map<Object, Object> params)UnitonUserLeftApplication()UnitonVideoStarted()UnitonVideoPaused()UnitonVideoResumed()UnitonVideoCompleted()UnitonAudioStateChanged(Boolean isMuted)UnitonAdImpression(TelemetryOnAdImpression telemetryOnAdImpression)final Unitdestroy()Cleans up resources and clears references to prevent memory leaks. -
Methods inherited from class com.inmobi.ads.controllers.PublisherCallbacks
onAdDisplayFailed, onAdImpressed, onAdLoadSucceeded, onAdWillDisplay, onAudioStatusChanged, onImraidLog, onRequestPayloadCreated, onRequestPayloadCreationFailed, onRewardsUnlocked -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NativeAdUnitManagerCallback
NativeAdUnitManagerCallback(InMobiNative inMobiNative, PublisherListenersModel publisherListenersModel, NativeFlowManagerNotifier nativeFlowManagerNotifier)
- Parameters:
inMobiNative- The InMobiNative instance associated with this callback.publisherListenersModel- Model containing references to publisher-defined listeners.nativeFlowManagerNotifier- Notifier for flow manager events.
-
-
Method Detail
-
onAdFetchSuccessful
Unit onAdFetchSuccessful(AdMetaInfo info)
-
onAdFetchFailed
Unit onAdFetchFailed(InMobiAdRequestStatus status)
-
onAdLoadSucceeded
final Unit onAdLoadSucceeded(NativePubData pubData, AdMetaInfo info)
Called when the native ad has been successfully loaded with data.
- Parameters:
pubData- The public data containing all the native ad information.info- Additional metadata about the ad.
-
onAdLoadFailed
Unit onAdLoadFailed(InMobiAdRequestStatus status)
-
onAdDisplayed
Unit onAdDisplayed(AdMetaInfo info)
-
onAdDismissed
Unit onAdDismissed()
-
onAdClicked
Unit onAdClicked(Map<Object, Object> params)
-
onUserLeftApplication
Unit onUserLeftApplication()
-
onVideoStarted
Unit onVideoStarted()
-
onVideoPaused
Unit onVideoPaused()
-
onVideoResumed
Unit onVideoResumed()
-
onVideoCompleted
Unit onVideoCompleted()
-
onAudioStateChanged
Unit onAudioStateChanged(Boolean isMuted)
-
onAdImpression
Unit onAdImpression(TelemetryOnAdImpression telemetryOnAdImpression)
-
-
-
-