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.
-
-
Constructor Summary
Constructors Constructor Description StaticExperienceLoader(NativeAdUnitComponent nativeAdUnitComponent, AdSessionManager adSessionManager)
-
Method Summary
Modifier and Type Method Description ExperienceResultload()Loads the static image experience and returns the result. -
-
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.
-
-
-
-