Class NativeAdUnitModule

  • All Implemented Interfaces:

    
    public final class NativeAdUnitModule
    
                        

    Dependency 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.

    • 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
      final MediaViewManager provideMediaViewManager() Provides a MediaViewManager for handling media content display.
      final <Error class: unknown class> provideAdTelemetryHelper() Provides the native ad telemetry helper for tracking and analytics.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.