TilePreviewHelper


object TilePreviewHelper


Helper object that provides methods to create Tiles for Preview purposes.

Summary

Public functions

TileBuilders.Tile.Builder

Helper method that creates a TileBuilders.Tile.Builder with a timeline consisting of a single timeline entry.

TileBuilders.Tile.Builder

Helper method that creates a TileBuilders.Tile.Builder with a timeline consisting of a single timeline entry.

Public functions

singleTimelineEntryTileBuilder

Added in 1.3.0
fun singleTimelineEntryTileBuilder(
    layoutElement: LayoutElementBuilders.LayoutElement
): TileBuilders.Tile.Builder

Helper method that creates a TileBuilders.Tile.Builder with a timeline consisting of a single timeline entry. The provided LayoutElementBuilders.LayoutElement is wrapped in a LayoutElementBuilders.Box and used as the timeline entry's layout.

Parameters
layoutElement: LayoutElementBuilders.LayoutElement

The layout element that will be used to create a single entry timeline TileBuilders.Tile.Builder. This layout element will be added to a LayoutElementBuilders.Box which will then be used as the layout root of the TileBuilders.Tile.Builder's timeline entry. The layout element will be aligned in the center of the LayoutElementBuilders.Box.

singleTimelineEntryTileBuilder

Added in 1.3.0
fun singleTimelineEntryTileBuilder(layout: LayoutElementBuilders.Layout): TileBuilders.Tile.Builder

Helper method that creates a TileBuilders.Tile.Builder with a timeline consisting of a single timeline entry. The provided LayoutElementBuilders.Layout is used as the layout of the timeline entry.

Parameters
layout: LayoutElementBuilders.Layout

The layout that will be used to create the single timeline entry in the TileBuilders.Tile.Builder.