render Into
Creates a retained session that renders content into container.
The Android render platform is installed on demand and the first frame is rendered synchronously before this function returns. This low-level entry does not provide lifecycle, ViewModel, saved state, environment, theme, or frame-clock locals; custom hosts must provide and dispose those services themselves, or use an Activity/Fragment setUiContent integration.
Return
the active session after its first synchronous frame
Parameters
Android parent that owns all Views mounted by the returned session
enables render logging and full render-result collection
log tag used by debug rendering
overlay implementation available to emitted overlay nodes
optional callback after every attempted frame
optional callback for collected diagnostics
optional callback when a frame fails
retained declarative content evaluated for each render
Samples
val session = renderInto(container) {
Text("Custom host")
}
session.setRenderingActive(false)
session.render()
session.dispose()