Package 

Interface AppDNALifecycleDelegate


  • 
    public interface AppDNALifecycleDelegate
    
                        

    SPEC-404 — backend-driven SDK lock-state observer. Fires once per state transition (idle <-> locked). Hosts use this to surface a custom "service unavailable" banner and trigger a one-shot event-queue retry on unlock.

    • Method Summary

      Modifier and Type Method Description
      Unit onSdkRuntimeLocked(String reason, String lockedAt) Fires once on idle to locked.
      Unit onSdkRuntimeUnlocked() Fires once on locked to idle (next bootstrap returned no runtime_lock).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onSdkRuntimeLocked

         Unit onSdkRuntimeLocked(String reason, String lockedAt)

        Fires once on idle to locked. reason in {billing_overdue, manual_admin, org_cancelled}. lockedAt is ISO-8601 (raw string for cross-platform parity; host parses if it needs a Date).

      • onSdkRuntimeUnlocked

         Unit onSdkRuntimeUnlocked()

        Fires once on locked to idle (next bootstrap returned no runtime_lock).