Package 

Class PrefetchBundleClient


  • 
    public final class PrefetchBundleClient
    
                        

    PrefetchBundleClient — single-round-trip SDK init for in-app state.

    Mirrors the TypeScript PrefetchBundleClient (libs/web-sdk/src/core/ prefetch-bundle-client.ts). Fetches /v1/sdk/prefetch-bundle once at init and every pollIntervalMs thereafter; the armed-campaigns list

    • inbox first page land in memory so trigger-time rendering is zero-latency.

    Identity mutations invalidate the ETag so the next fetch returns a fresh payload bound to the new identity instead of a 304.

    SCAFFOLD NOTE: Compiles + matches the wire contract. Not yet wired into AegisInAppManager and not exercised on device. Production use needs:

    • Instrumentation test verifying the 5-min poll fires

    • Integration with AegisInAppManager so armed campaigns surface at trigger time instead of via the legacy /v1/in-app/active path

    • Link to AegisInbox so inbox.invalidate events call refresh()