Class StaticExperienceLoader

  • All Implemented Interfaces:

    
    public final class StaticExperienceLoader
    extends ExperienceLoader
                        

    Experience loader for handling static image content in native ads. This loader processes static image assets, validates their requirements, and inflates the media view for displaying the image content.

    • 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
      ExperienceResult load() Loads the static image experience and returns the result.
      • Methods inherited from class java.lang.Object

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

      • StaticExperienceLoader

        StaticExperienceLoader(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

         ExperienceResult load()

        Loads the static image experience and returns the result. Validates the media type and image configuration, then inflates the media view.

        Returns:

        ExperienceResult indicating success with media view or failure with error code.