Android 12 Developer Preview is here! Try it out, and give us your feedback!

LayoutInspectorTree

class LayoutInspectorTree
kotlin.Any
   ↳ androidx.compose.ui.tooling.inspector.LayoutInspectorTree

Generator of a tree for the Layout Inspector.

Summary

Public constructors

Generator of a tree for the Layout Inspector.

Public methods
List<InspectorNode>
convert(view: View)

Converts the CompositionData set held by view into a list of root nodes.

List<NodeParameter>

Converts the RawParameters of the node into displayable parameters.

Unit

Reset the generated id.

Properties
Boolean

Public constructors

<init>

LayoutInspectorTree()

Generator of a tree for the Layout Inspector.

Public methods

convert

fun convert(view: View): List<InspectorNode>

Converts the CompositionData set held by view into a list of root nodes.

convertParameters

fun convertParameters(node: InspectorNode): List<NodeParameter>

Converts the RawParameters of the node into displayable parameters.

resetGeneratedId

fun resetGeneratedId(): Unit

Reset the generated id. Nodes are assigned an id if there isn't a layout node id present.

Properties

hideSystemNodes

var hideSystemNodes: Boolean