Package-level declarations

Functions

Link copied to clipboard
fun Screen.Preview(modifier: Modifier = Modifier, placeholderModifier: Modifier = Modifier, viewEnvironmentUpdater: (ViewEnvironment) -> ViewEnvironment? = null)
fun <RenderingT : Screen> ScreenViewFactory<RenderingT>.Preview(rendering: RenderingT, modifier: Modifier = Modifier, placeholderModifier: Modifier = Modifier, viewEnvironmentUpdater: (ViewEnvironment) -> ViewEnvironment? = null)

Like ScreenComposableFactory.Preview, but for non-Compose ScreenViewFactory instances. Yes, you can preview classic View code this way.

fun <RenderingT : Screen> ScreenComposableFactory<RenderingT>.Preview(rendering: RenderingT, modifier: Modifier = Modifier, placeholderModifier: Modifier = Modifier, viewEnvironmentUpdater: (ViewEnvironment) -> ViewEnvironment? = null)

Draws this ScreenComposableFactory using a special preview ScreenComposableFactoryFinder.