Package-level declarations

Functions

Link copied to clipboard
fun LayoutElementPreview(element: LayoutElementBuilders.LayoutElement, @ColorInt windowBackgroundColor: Int = Color.DKGRAY, tileResourcesFn: ResourceBuilders.Resources.Builder.() -> Unit = {})

Preview a smaller tile component such as a Button, that is not full screen.

Link copied to clipboard

Preview a root layout component such as a PrimaryLayout, that is full screen.

Link copied to clipboard
fun <T, R> TileLayoutPreview(state: T, resourceState: R, renderer: TileLayoutRenderer<T, R>)

Preview a TileLayoutRenderer by providing the complete state for tile and resources. Any bitmaps should be preloaded from test resources and passed in via resourceState as Bitmap or ImageResource.

Link copied to clipboard

Preview a Tile by providing the final proto representation of tiles and resources. It's possible to provide an updated Tile representation whenever a load action is triggered.