Class LoadFailedState
-
- All Implemented Interfaces:
-
com.inmobi.media.ads.common.base.state.State,com.inmobi.media.ads.common.listeners.AUMDestroyListener
public final class LoadFailedState extends BaseFailedState implements AUMDestroyListener
Represents the state when an ad load operation has failed.
This state extends BaseFailedState to handle failures that occur during the ad loading or rendering process. It notifies the publisher of the load failure, submits telemetry data about the load error, and initiates cleanup procedures. The state provides detailed error information through telemetry payload and status codes for debugging and monitoring.
-
-
Field Summary
Fields Modifier and Type Field Description private final Map<String, Object>telemetryPayloadprivate final InMobiAdRequestStatusstatus
-
Constructor Summary
Constructors Constructor Description LoadFailedState(Map<String, Object> telemetryPayload, InMobiAdRequestStatus status, AdUnitTimeoutManager adUnitTimeout, IAdManagerComponent adManagerComponent, PublisherCallbacks publisherCallbacks, AUMStateMachine stateMachine)
-
Method Summary
Modifier and Type Method Description final Map<String, Object>getTelemetryPayload()The telemetry payload containing detailed error information final InMobiAdRequestStatusgetStatus()The InMobiAdRequestStatus describing the load failure Unitinitialize()Initializes the load failed state and handles failure notifications. -
Methods inherited from class com.inmobi.media.ads.common.adUnitManager.state.states.BaseFailedState
onDestroy -
Methods inherited from class com.inmobi.media.ads.common.base.state.State
cleanUp -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LoadFailedState
LoadFailedState(Map<String, Object> telemetryPayload, InMobiAdRequestStatus status, AdUnitTimeoutManager adUnitTimeout, IAdManagerComponent adManagerComponent, PublisherCallbacks publisherCallbacks, AUMStateMachine stateMachine)
- Parameters:
adUnitTimeout- The AdUnitTimeoutManager for managing timeouts during cleanupadManagerComponent- The IAdManagerComponent providing necessary dependenciespublisherCallbacks- The PublisherCallbacks for notifying the publisher of the failurestateMachine- The AUMStateMachine managing state transitions
-
-
Method Detail
-
getTelemetryPayload
final Map<String, Object> getTelemetryPayload()
The telemetry payload containing detailed error information
-
getStatus
final InMobiAdRequestStatus getStatus()
The InMobiAdRequestStatus describing the load failure
-
initialize
Unit initialize()
Initializes the load failed state and handles failure notifications.
This method performs the following operations:
Logs the failure details including telemetry payload and status information
Notifies the publisher callbacks about the ad load failure
Submits ad load failed telemetry with the payload details
Calls the parent initialization to trigger cleanup procedures
All publisher notifications are executed on the main thread to ensure proper UI thread execution for callback handling.
-
-
-
-