Class NativeAdUnitModule
-
- All Implemented Interfaces:
public final class NativeAdUnitModuleDependency injection module for native ad units. This module provides factory methods for creating various native ad components including managers, handlers, and helpers required for native ad functionality.
The module follows the dependency injection pattern to ensure proper separation of concerns and testability of native ad components. It uses lazy initialization to optimize performance and memory usage.
-
-
Constructor Summary
Constructors Constructor Description NativeAdUnitModule(AdComponent adComponent)
-
Method Summary
Modifier and Type Method Description final MediaViewManagerprovideMediaViewManager()Provides a MediaViewManager for handling media content display. final <Error class: unknown class>provideAdTelemetryHelper()Provides the native ad telemetry helper for tracking and analytics. -
-
Constructor Detail
-
NativeAdUnitModule
NativeAdUnitModule(AdComponent adComponent)
- Parameters:
adComponent- The main ad component providing core ad functionality.
-
-
Method Detail
-
provideMediaViewManager
final MediaViewManager provideMediaViewManager()
Provides a MediaViewManager for handling media content display.
Creates a new MediaViewManager instance configured with the necessary context, coroutine scope, and logger for managing media content lifecycle and display.
- Returns:
A new MediaViewManager instance.
-
provideAdTelemetryHelper
final <Error class: unknown class> provideAdTelemetryHelper()
Provides the native ad telemetry helper for tracking and analytics.
Returns the singleton telemetry helper instance that handles submission of telemetry events throughout the native ad lifecycle.
- Returns:
The NativeAdTelemetryHelper instance.
-
-
-
-