Class NativeImpressionManager

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final InMobiLogger getLogger()
      • Methods inherited from class com.inmobi.media.ads.nativeAd.viewability.base.BaseNativeViewabilityManager

        destroy, registerForTracking
      • Methods inherited from class java.lang.Object

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

      • NativeImpressionManager

        NativeImpressionManager(CoroutineScope coroutineScope, ViewHolderConfig viewabilityModel, ViewabilityCriteria viewabilityCriteria, Flow<Boolean> windowObserver, InMobiLogger logger)
        Parameters:
        coroutineScope - The CoroutineScope for managing viewability checks.
        viewabilityModel - The ViewHolderConfig containing references to the views and their initial configuration for viewability.
        viewabilityCriteria - The ViewabilityCriteria defining the conditions for an impression (e.g., percentage visible, time visible).
        windowObserver - A Flow that emits true when the window containing the ad gains focus or becomes visible, and false otherwise.