Class StaticTelemetryHelper
-
- All Implemented Interfaces:
public final class StaticTelemetryHelperA 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.
-
-
Constructor Summary
Constructors Constructor Description StaticTelemetryHelper(AdContext adContext)
-
Method Summary
Modifier and Type Method Description final UnitsubmitMainImageLoadStarted()Submits a telemetry event indicating that the main image load has started. final UnitsubmitMainImageLoadSuccess()Submits a telemetry event indicating that the main image load was successful. final UnitsubmitMainImageLoadFailure(Short errorCode)Submits a telemetry event indicating that the main image load has failed. -
-
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.
-
-
-
-