Class ExperienceLoader

  • All Implemented Interfaces:

    
    public abstract class ExperienceLoader
    
                        

    Abstract base class for loading native ad experiences. This class provides the foundation for loading different types of media experiences (static images, videos, etc.) and handles common OM-SDK session initialization.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract ExperienceResult load() Abstract method to load the experience and return the result.
      • Methods inherited from class java.lang.Object

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

      • ExperienceLoader

        ExperienceLoader(NativeAdUnitComponent nativeAdUnitComponent, AdSessionManager adSessionManager)
        Parameters:
        nativeAdUnitComponent - The dependency injection component providing core dependencies.
        adSessionManager - The OM-SDK ad session manager for viewability tracking.
    • Method Detail

      • load

         abstract ExperienceResult load()

        Abstract method to load the experience and return the result. Subclasses must implement this method to provide specific loading logic.

        Returns:

        An ExperienceResult indicating success or failure of the loading process.