Package 

Interface ZeroGpuListener


  • 
    public interface ZeroGpuListener
    
                        

    Optional host-facing lifecycle callbacks (guardrail state changes). All methods have empty defaults so hosts implement only what they care about. Callbacks arrive on the SDK's IO dispatcher — hop to the main thread before touching UI.

    • Method Summary

      Modifier and Type Method Description
      Unit onDegraded(String reason) The SDK hit memory pressure and stopped accepting tasks (still alive, may recover).
      Unit onRecovered() Pressure receded; the SDK accepts tasks again.
      Unit onShutdown(String reason) Terminal shutdown (guardrail or host stop).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait