Package 

Class ImageLoader


  • 
    public final class ImageLoader
    
                        

    ImageLoader is responsible for asynchronously loading and displaying image ads, including tracking impressions and handling click interactions.

    • Constructor Summary

      Constructors 
      Constructor Description
      ImageLoader(CoroutineScope coroutineScope, AdTracker adTracker)
    • Method Summary

      Modifier and Type Method Description
      final Unit setViewLoadListener(Function2<ImageAd, String, Unit> listener) Sets a listener to be notified when the ad view is fully loaded.
      final Unit clearViewLoadListener() Clear the view load listener to prevent memory leaks
      • Methods inherited from class java.lang.Object

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

      • ImageLoader

        ImageLoader(CoroutineScope coroutineScope, AdTracker adTracker)
        Parameters:
        coroutineScope - The CoroutineScope in which image loading and tracking operations are executed.
        adTracker - A utility class responsible for tracking ad impressions and clicks.