Skip to content

PlaylistBuilder🔗

Constructor🔗

func NewPlaylistBuilder() *PlaylistBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *PlaylistBuilder) Build() (Playlist, error)

Interval🔗

Interval sets the time between switching views in a playlist.

FIXME: Is this based on a standardized format or what options are available? Can datemath be used?

func (builder *PlaylistBuilder) Interval(interval string) *PlaylistBuilder

Items🔗

The ordered list of items that the playlist will iterate over.

FIXME! This should not be optional, but changing it makes the godegen awkward

func (builder *PlaylistBuilder) Items(items []cog.Builder[playlist.PlaylistItem]) *PlaylistBuilder

Name🔗

Name of the playlist.

func (builder *PlaylistBuilder) Name(name string) *PlaylistBuilder

Uid🔗

Unique playlist identifier. Generated on creation, either by the

creator of the playlist of by the application.

func (builder *PlaylistBuilder) Uid(uid string) *PlaylistBuilder

See also🔗