Class PreloadAdUnitTimeoutManager
-
- All Implemented Interfaces:
public final class PreloadAdUnitTimeoutManager extends AdUnitTimeoutManager
Manages preload-specific timeouts for an ad unit.
This class extends AdUnitTimeoutManager to implement timeout logic specifically for preloaded ads. It manages two types of timeouts:
Preload timeout - during the initial ad fetching phase
Load timeout - during the actual loading phase when the ad is requested for display
-
-
Field Summary
Fields Modifier and Type Field Description private final AdManagerComponentadManagerComponentprivate final AUMStateMachinestateMachine
-
Constructor Summary
Constructors Constructor Description PreloadAdUnitTimeoutManager(AdManagerComponent adManagerComponent, AUMStateMachine stateMachine)
-
Method Summary
Modifier and Type Method Description final AdManagerComponentgetAdManagerComponent()The AdManagerComponent providing access to context, configuration, and a coroutine scope. final AUMStateMachinegetStateMachine()The AUMStateMachine (Ad Unit Manager State Machine) to notify in case of timeouts. UnitonAdFetchStarted()UnitonLoadingStarted()UnitonAdFetchSuccessful()UnitonLoadSuccessful()Unitdestroy()-
-
Constructor Detail
-
PreloadAdUnitTimeoutManager
PreloadAdUnitTimeoutManager(AdManagerComponent adManagerComponent, AUMStateMachine stateMachine)
-
-
Method Detail
-
getAdManagerComponent
final AdManagerComponent getAdManagerComponent()
The AdManagerComponent providing access to context, configuration, and a coroutine scope.
-
getStateMachine
final AUMStateMachine getStateMachine()
The AUMStateMachine (Ad Unit Manager State Machine) to notify in case of timeouts.
-
onAdFetchStarted
Unit onAdFetchStarted()
-
onLoadingStarted
Unit onLoadingStarted()
-
onAdFetchSuccessful
Unit onAdFetchSuccessful()
-
onLoadSuccessful
Unit onLoadSuccessful()
-
-
-
-