changjieyang
changjieyang

Reputation: 146

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

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

Upvotes: 3

Views: 513

Answers (1)

Dishonered
Dishonered

Reputation: 8831

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.

Upvotes: 0

Related Questions