Package 

Interface IOtelAnrDetector


  • 
    public interface IOtelAnrDetector
    
                        

    Platform-agnostic interface for ANR (Application Not Responding) detection.

    ANRs occur when the main thread is blocked for too long (typically >5 seconds on Android). Unlike crashes, ANRs don't throw exceptions - they're detected by monitoring thread responsiveness.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit start() Starts monitoring for ANRs.
      abstract Unit stop() Stops monitoring for ANRs.
      • Methods inherited from class java.lang.Object

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

      • start

         abstract Unit start()

        Starts monitoring for ANRs. This should be called early in the app lifecycle, ideally right after crash handler initialization.

      • stop

         abstract Unit stop()

        Stops monitoring for ANRs. Should be called when the app is shutting down or when monitoring is no longer needed.