Package 

Class NativeEventCollector


  • @ApiStatus.Internal() 
    public final class NativeEventCollector
    
                        

    Collects native crash events from the outbox directory. These events can be correlated with tombstone events from ApplicationExitInfo to avoid sending duplicate crash reports.

    • Method Detail

      • collect

         void collect()

        Scans the outbox directory and collects all native crash events. This method should be calledonce before processing tombstones. Subsequent calls are no-ops.

      • findAndRemoveMatchingNativeEvent

        @Nullable() NativeEventCollector.NativeEventData findAndRemoveMatchingNativeEvent(long tombstoneTimestampMs)

        Finds a native event that matches the given tombstone timestamp. If a match is found, it isremoved from the internal list so it won't be matched again.

        This method will lazily collect native events from the outbox on first call.

        Parameters:
        tombstoneTimestampMs - the timestamp from ApplicationExitInfo