retireInventory method

  1. @protected
void retireInventory()

Retires this controller's inventory: cancels the timer, drops a warm (not-showing) handle, and makes load and every autonomous reload (dismiss/expiry/retry) a no-op for the rest of the process. A currently SHOWING ad finishes on screen — its dismiss cleans up but does not reload, because load is now inert. Idempotent; safe after dispose.

Used by the app-open manager for a launch-only slot after the single launch (such an ad is never shown again this process). Not a general lifecycle control — exposed publicly only via AppOpenAdController.retire.

Implementation

@protected
void retireInventory() {
  if (_disposed || _retired) return;
  _retired = true;
  _timer?.cancel();
  _timer = null;
  if (_state.value is! AdShowing) {
    _dropHandle();
    _state.value = const AdIdle();
  }
}