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.

    • 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
      Unit initialize() Initializes the failed state by destroying the timeout and transitioning to the destroyed state.
      Unit onDestroy() Destroys the ad unit by transitioning to the DestroyedState.
      • 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
    • 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.