Class ExperienceLoader
-
- All Implemented Interfaces:
public abstract class ExperienceLoaderAbstract 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.
-
-
Constructor Summary
Constructors Constructor Description ExperienceLoader(NativeAdUnitComponent nativeAdUnitComponent, AdSessionManager adSessionManager)
-
Method Summary
Modifier and Type Method Description abstract ExperienceResultload()Abstract method to load the experience and return the result. -
-
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.
-
-
-
-