TimelineBuilders.TimelineEntry


@RequiresSchemaVersion(major = 1, minor = 0)
public final class TimelineBuilders.TimelineEntry


One piece of renderable content along with the time that it is valid for.

Summary

Nested types

Builder for TimelineEntry

Public methods

static @NonNull TimelineBuilders.TimelineEntry
@RequiresSchemaVersion(major = 1, minor = 0)
fromLayoutElement(
    @NonNull LayoutElementBuilders.LayoutElement layoutElement
)

Returns the TimelineEntry object containing the given layout element.

@Nullable LayoutElementBuilders.Layout

Gets the contents of this timeline entry.

@Nullable TimelineBuilders.TimeInterval

Gets the validity period for this timeline entry.

@NonNull String

Public methods

fromLayoutElement

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public static @NonNull TimelineBuilders.TimelineEntry fromLayoutElement(
    @NonNull LayoutElementBuilders.LayoutElement layoutElement
)

Returns the TimelineEntry object containing the given layout element.

getLayout

Added in 1.0.0
public @Nullable LayoutElementBuilders.Layout getLayout()

Gets the contents of this timeline entry.

getValidity

Added in 1.0.0
public @Nullable TimelineBuilders.TimeInterval getValidity()

Gets the validity period for this timeline entry.

toString

public @NonNull String toString()