PreviewNativeViewNode

@Serializable
data class PreviewNativeViewNode(val className: String, val bounds: PreviewLayoutBounds, val measuredWidth: Int, val measuredHeight: Int, val visibility: String, val visibleBounds: PreviewLayoutBounds? = null, val clippingState: PreviewClippingState = PreviewClippingState.NotClipped, val clippingAncestorClassName: String? = null, val clippingAncestorNodeId: String? = null, val clippingExpected: Boolean = false, val properties: Map<String, String> = emptyMap(), val nodeId: String? = null, val sourceCallSites: List<PreviewSourceCallSite> = emptyList(), val synthetic: Boolean = false, val children: List<PreviewNativeViewNode> = emptyList())

One laid-out Android View captured after the static preview root completes measure and layout.

bounds are absolute pixel coordinates relative to the preview root. Keeping this separate from the VNode tree makes wrapper Views, lazy-container children, and platform-owned descendants visible without coupling the stable preview protocol to renderer internals.

Constructors

Link copied to clipboard
constructor(className: String, bounds: PreviewLayoutBounds, measuredWidth: Int, measuredHeight: Int, visibility: String, visibleBounds: PreviewLayoutBounds? = null, clippingState: PreviewClippingState = PreviewClippingState.NotClipped, clippingAncestorClassName: String? = null, clippingAncestorNodeId: String? = null, clippingExpected: Boolean = false, properties: Map<String, String> = emptyMap(), nodeId: String? = null, sourceCallSites: List<PreviewSourceCallSite> = emptyList(), synthetic: Boolean = false, children: List<PreviewNativeViewNode> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard