Package-level declarations
Types
Link copied to clipboard
class RenderSession
Owns a retained ViewCompose render session and its mounted Android View tree.
Link copied to clipboard
object UiHostAndroid
Identifies the Android host artifact in runtime diagnostics.
Functions
Link copied to clipboard
fun UiTreeBuilder.AndroidView(factory: (Context) -> View, update: (View) -> Unit = {}, key: Any? = null, modifier: Modifier = Modifier, onReset: (View) -> Unit? = null, onRelease: (View) -> Unit? = null, onCommit: (View) -> Unit? = null)
Mounts an Android View as a transaction-aware declarative node.
Link copied to clipboard
Applies replay-safe configuration directly to a mounted Android View.
Link copied to clipboard
fun renderInto(container: ViewGroup, debug: Boolean = false, debugTag: String = "ViewCompose", overlayHost: OverlayHost = OverlayHostDefaults.noOp, onRenderStats: (RenderStats) -> Unit? = null, onRenderResult: (RenderTreeResult) -> Unit? = null, onRenderFailure: (RenderFailure) -> Unit? = null, content: UiTreeBuilder.() -> Unit): RenderSession
Link copied to clipboard
fun ComponentActivity.setUiContent(debug: Boolean = false, debugTag: String = "ViewCompose", dynamicColorPolicy: AndroidDynamicColorPolicy = AndroidDynamicColorPolicy.UseIfAvailable, themeRefreshController: AndroidThemeRefreshController? = null, overlayHostFactory: (ViewGroup) -> OverlayHost = { root -> OverlayHostDefaults.androidOrNoOp(root) }, onRenderStats: (RenderStats) -> Unit? = null, onRenderResult: (RenderTreeResult) -> Unit? = null, onRenderFailure: (RenderFailure) -> Unit? = null, content: UiTreeBuilder.(ViewGroup) -> Unit): ViewGroup
Installs a ViewCompose root as this Activity's content and starts its render session.
fun Fragment.setUiContent(debug: Boolean = false, debugTag: String = "ViewCompose", dynamicColorPolicy: AndroidDynamicColorPolicy = AndroidDynamicColorPolicy.UseIfAvailable, themeRefreshController: AndroidThemeRefreshController? = null, overlayHostFactory: (ViewGroup) -> OverlayHost = { root -> OverlayHostDefaults.androidOrNoOp(root) }, onRenderStats: (RenderStats) -> Unit? = null, onRenderResult: (RenderTreeResult) -> Unit? = null, onRenderFailure: (RenderFailure) -> Unit? = null, content: UiTreeBuilder.(ViewGroup) -> Unit): ViewGroup
Creates a Fragment ViewCompose root and binds its render session to the view lifecycle.
Link copied to clipboard
Returns the ViewCompose saveable-state registry bound to owner.