Package 

Class LayoutPlugin

  • All Implemented Interfaces:
    tech.devlens.ProbePlugin

    
    public final class LayoutPlugin
     implements ProbePlugin
                        

    Probe plugin — exports the live View/Compose hierarchy as inspectable JSON.

    Complements claude-in-mobile which captures hierarchy from outside via ADB/accessibility. This plugin captures from inside the app, giving access to:

    • Actual View/Composable properties (padding, elevation, measured size)

    • Internal state (ViewModel data, recomposition counts)

    • Custom semantics and debug metadata

    • Dump full View or Compose layout tree with properties on demand

    • Highlight a specific view by ID or semantics tag

    • Watch for layout changes (e.g. on navigation)

    • Works with both View system and Compose

    Probe.install(
        Probe.Builder(this)
            .plugin(LayoutPlugin())
            .build()
    )
    • Android: View hierarchy + Compose (planned)

    • iOS: UIView / SwiftUI hierarchy (planned)

    • Flutter: Widget tree (planned)