Class StaticTelemetryHelper

  • All Implemented Interfaces:

    
    public final class StaticTelemetryHelper
    
                        

    A helper class for submitting telemetry events related to static ad components.

    This class provides methods for submitting telemetry events related to the loading of the main image in a static ad. It handles events for load start, success, and failure, using the provided AdContext for event context.

    • 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 Unit submitMainImageLoadStarted() Submits a telemetry event indicating that the main image load has started.
      final Unit submitMainImageLoadSuccess() Submits a telemetry event indicating that the main image load was successful.
      final Unit submitMainImageLoadFailure(Short errorCode) Submits a telemetry event indicating that the main image load has failed.
      • Methods inherited from class java.lang.Object

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

      • StaticTelemetryHelper

        StaticTelemetryHelper(AdContext adContext)
    • Method Detail

      • submitMainImageLoadStarted

         final Unit submitMainImageLoadStarted()

        Submits a telemetry event indicating that the main image load has started.

        This event is triggered when the process of loading the main image begins.

      • submitMainImageLoadSuccess

         final Unit submitMainImageLoadSuccess()

        Submits a telemetry event indicating that the main image load was successful.

        This event is triggered when the main image has been loaded successfully.

      • submitMainImageLoadFailure

         final Unit submitMainImageLoadFailure(Short errorCode)

        Submits a telemetry event indicating that the main image load has failed.

        This event is triggered when the main image fails to load.

        Parameters:
        errorCode - The error code associated with the image load failure.