Class SentryComposeHelperKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Rect boundsInWindow(LayoutCoordinates $self, LayoutCoordinates rootCoordinates) Copied from sentry-android-replay/src/main/java/io/sentry/android/replay/util/Nodes.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • boundsInWindow

         final static Rect boundsInWindow(LayoutCoordinates $self, LayoutCoordinates rootCoordinates)

        Copied from sentry-android-replay/src/main/java/io/sentry/android/replay/util/Nodes.kt

        A faster copy of https://github.com/androidx/androidx/blob/fc7df0dd68466ac3bb16b1c79b7a73dd0bfdd4c1/compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/LayoutCoordinates.kt#L187

        Since we traverse the tree from the root, we don't need to find it again from the leaf node and just pass it as an argument.

        Returns:

        boundaries of this layout relative to the window's origin.