Package-level declarations
Types
Interface implemented by a rendering class to allow it to drive a composable UI via an appropriate ScreenComposableFactory implementation, by simply overriding the Content method.
A composable function that will be used to wrap the first (highest-level) ScreenComposableFactory view factory in a composition. This can be used to setup any composition locals that all ScreenComposableFactory factories need access to, such as UI themes.
A ViewRegistry.Entry that uses a Composable function to display ScreenT. This is the fundamental unit of Compose tooling in Workflow UI, the Compose analogue of ScreenViewFactory.
Functions
Convert a ScreenViewFactory to a ScreenComposableFactory, using AndroidView to host the View
it builds.
Exposes the textValue of a TextController as a remembered MutableState, suitable for use from @Composable
functions.
Convert a ScreenComposableFactory into a ScreenViewFactory by using a ComposeView to host ScreenComposableFactory.Content.
Convenience function for creating anonymous ComposeScreens since composable fun interfaces aren't supported. See the ComposeScreen class for more information.
Runs this Workflow as long as this composable is part of the composition, and returns a State object that will be updated whenever the runtime emits a new RenderingT. Note that here, and in the rest of the documentation for this class, the "State
" type refers to Compose's snapshot State type, not the concept of the StateT
type in a particular workflow.
Alternative to WorkflowLayout for a pure Compose application. Makes the receiver available via LocalWorkflowEnvironment and runs the composition bound to screen.
It is rare to call this method directly. Instead the most common path is to pass Screen instances to WorkflowRendering, which will apply the ScreenComposableFactory and ScreenComposableFactoryFinder machinery for you.
Replaces the ScreenComposableFactoryFinder and ScreenViewFactoryFinder found in the receiving ViewEnvironment with wrappers that are able to delegate from one platform to the other. Required to allow WorkflowViewStub to handle renderings bound to @Composable
functions, and to allow WorkflowRendering to handle renderings bound to ScreenViewFactory.
Returns a ScreenComposableFactoryFinder that ensures that any ScreenComposableFactory factories registered in this registry will be wrapped exactly once with a CompositionRoot wrapper. See CompositionRoot for more information.
Renders rendering into the composition using the ViewEnvironment found in LocalWorkflowEnvironment to source a ScreenComposableFactoryFinder to generate the view.