Compose app - Is it possible to programatically get component tree information from RootView/DecorView?

442 Views Asked by At

Our SDK can't be inline with app's code, is there a way to retrieve UI tree info without app developer manually add code snippets to capture the "Component Tree" data without using the Layout Inspector tool?

enter image description here

1

There are 1 best solutions below

0
Dishonered On

Checkout Radiography on GitHub. Its capable of generating the compose tree in runtime. They do that by accessing non-public methods of the compose tooling library.