-
public class AndroidComposeViewUtilsUtilities for accessing internal properties of AndroidComposeView via reflection or internal ignoring safety checks.
-
-
Field Summary
Fields Modifier and Type Field Description public final static AndroidComposeViewUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final LayoutInfogetRootNode(View $self)final UnitwarmUpReflection(SessionReplayLogger logger)final LayoutInfogetRootNodeUnsafe(View $self)Get the root LayoutNode of a Compose hierarchy from a View, if the View is an AndroidComposeView. final LayoutInfogetRootNodeHybrid(View $self, SessionReplayLogger logger)Hybrid approach: Attempts to retrieve the root LayoutNode of a Compose hierarchy from a View. -
-
Method Detail
-
getRootNode
final LayoutInfo getRootNode(View $self)
-
warmUpReflection
final Unit warmUpReflection(SessionReplayLogger logger)
-
getRootNodeUnsafe
final LayoutInfo getRootNodeUnsafe(View $self)
Get the root LayoutNode of a Compose hierarchy from a View, if the View is an AndroidComposeView.
-
getRootNodeHybrid
final LayoutInfo getRootNodeHybrid(View $self, SessionReplayLogger logger)
Hybrid approach: Attempts to retrieve the root LayoutNode of a Compose hierarchy from a View. First, tries an unsafe cast (faster); if it fails, falls back to reflection.
-
-
-
-