Package-level declarations
Functions
Link copied to clipboard
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
fun LayoutRootPreview(root: LayoutElementBuilders.LayoutElement, tileResourcesFn: ResourceBuilders.Resources.Builder.() -> Unit = {})
Preview a root layout component such as a PrimaryLayout, that is full screen.
Link copied to clipboard
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
fun TilePreview(tile: TileBuilders.Tile, tileResources: ResourceBuilders.Resources, onLoadAction: (StateBuilders.State) -> TileBuilders.Tile? = null)
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.