{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

WindowRecomposerFactory

@InternalComposeUiApi
public fun interface WindowRecomposerFactory


A factory for creating an Android window-scoped Recomposer. See createRecomposer.

Summary

Nested types

Public methods

abstract @NonNull Recomposer
createRecomposer(@NonNull View windowRootView)

Get a Recomposer for the window where windowRootView is at the root of the window's View hierarchy.

Public methods

createRecomposer

abstract @NonNull Recomposer createRecomposer(@NonNull View windowRootView)

Get a Recomposer for the window where windowRootView is at the root of the window's View hierarchy. The factory is responsible for establishing a policy for shutting down the returned Recomposer. windowRootView will hold a hard reference to the returned Recomposer until it joins after shutting down.