Package-level declarations
Types
Link copied to clipboard
Resolves the application theme for a static preview variant.
Link copied to clipboard
One application-owned theme resolution shared by the preview root, native Views, and DSL tree.
Link copied to clipboard
data class ViewComposePreviewOptions(val theme: PreviewTheme = PreviewTheme.Light, val debug: Boolean = false, val debugTag: String = "ViewComposePreview")
Configures the Compose-to-ViewCompose preview bridge.
Functions
Link copied to clipboard
fun ViewComposePreview(modifier: Modifier = Modifier, options: ViewComposePreviewOptions = ViewComposePreviewOptions(), content: UiTreeBuilder.() -> Unit)
Renders content inside a Compose AndroidView preview host.
Link copied to clipboard
fun ViewComposePreviewWithRoot(modifier: Modifier = Modifier, options: ViewComposePreviewOptions = ViewComposePreviewOptions(), content: UiTreeBuilder.(ViewGroup) -> Unit)
Renders content inside a Compose preview and supplies its Android root ViewGroup.