Package 

Class EventReporter


  • 
    public final class EventReporter
    
                        

    Fire-and-forget device lifecycle event reporter. Pure Kotlin (no Android types) so the batching/dedup/ring-buffer logic is unit-testable with fakes.

    Rules (identical to the browser SDK): never throws, never blocks the caller; flush when 20 events are queued, every 10s, or immediately on error/fatal; dedup identical type+code within 30s into a data.repeat count; cap 200 events per session; monotonic seq; failed batches persist to the ring buffer and are drained on the next boot.