TilePreviewHelper


public static class TilePreviewHelper


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

Summary

Public fields

static @NonNull TilePreviewHelper

Public methods

static final @NonNull TileBuilders.Tile.Builder

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

static final @NonNull TileBuilders.Tile.Builder

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

Public fields

INSTANCE

Added in 1.3.0
public static @NonNull TilePreviewHelper INSTANCE

Public methods

singleTimelineEntryTileBuilder

Added in 1.3.0
public static final @NonNull TileBuilders.Tile.Builder singleTimelineEntryTileBuilder(
    @NonNull LayoutElementBuilders.LayoutElement layoutElement
)

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
@NonNull LayoutElementBuilders.LayoutElement 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
public static final @NonNull TileBuilders.Tile.Builder singleTimelineEntryTileBuilder(
    @NonNull LayoutElementBuilders.Layout layout
)

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
@NonNull LayoutElementBuilders.Layout layout

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