Class BaseFailedState
-
- All Implemented Interfaces:
-
com.inmobi.media.ads.common.base.state.State,com.inmobi.media.ads.common.listeners.AUMDestroyListener
public abstract class BaseFailedState implements State, AUMDestroyListener
An abstract base class for representing failed states in an ad unit's state machine.
-
-
Constructor Summary
Constructors Constructor Description BaseFailedState(AdUnitTimeoutManager adUnitTimeout, IAdManagerComponent adManagerComponent, AUMStateMachine stateMachine)
-
Method Summary
Modifier and Type Method Description Unitinitialize()Initializes the failed state by destroying the timeout and transitioning to the destroyed state. UnitonDestroy()Destroys the ad unit by transitioning to the DestroyedState. -
-
Constructor Detail
-
BaseFailedState
BaseFailedState(AdUnitTimeoutManager adUnitTimeout, IAdManagerComponent adManagerComponent, AUMStateMachine stateMachine)
-
-
Method Detail
-
initialize
Unit initialize()
Initializes the failed state by destroying the timeout and transitioning to the destroyed state.
This method is called when the state is entered. It ensures that any active timeout is canceled and then triggers the destruction of the ad unit.
-
onDestroy
Unit onDestroy()
Destroys the ad unit by transitioning to the DestroyedState.
This method is called when the ad unit is being destroyed or when the failed state is initialized. It changes the state machine's current state to DestroyedState.
-
-
-
-