-
- All Implemented Interfaces:
-
tech.devlens.ProbePlugin
public final class LayoutPlugin implements ProbePluginProbe 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)
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final StringdisplayNameprivate final <ERROR CLASS>supportedPlatforms
-
Constructor Summary
Constructors Constructor Description LayoutPlugin()
-
Method Summary
Modifier and Type Method Description StringgetId()StringgetDisplayName()<ERROR CLASS>getSupportedPlatforms()UnitonAttach(ProbeHost host)UnitonDetach()-
-
Method Detail
-
getDisplayName
String getDisplayName()
-
getSupportedPlatforms
<ERROR CLASS> getSupportedPlatforms()
-
-
-
-