radiography icon indicating copy to clipboard operation
radiography copied to clipboard

Explore exposing InspectorInfo in the rendering/filtering API.

Open zach-klippenstein opened this issue 5 years ago • 2 comments

There is an effort ongoing right now to add InspectorInfo modifiers to all modifiers that describe their values in a human-readable way for some sort of debugger (presumably the LayoutInspector in Android Studio?). This is exactly the sort of information that could be useful for Radiography to render.

There's an example CL that adds this to a modifier here.

Action items:

  • [ ] Figure out how this info is stored in the slot table and how to extract it.
  • [ ] Is this information actually worth surfacing explicitly somehow in the Radiography API? (E.g. in ComposeView somehow.) Should it replace exposing modifiers entirely? Are more type-safe modifiers still a better API for reflectively selecting and rendering type-safe data?

Note that even if this does provide a better source of debug data going forward, it will only be available on newer versions of Compose for some time, so Radiography will need to support both for at least a few releases.

zach-klippenstein avatar Oct 26 '20 17:10 zach-klippenstein

NOICE

pyricau avatar Oct 27 '20 18:10 pyricau