MediaPlaybackTemplate.Builder


@ExperimentalCarApi
public final class MediaPlaybackTemplate.Builder


Builder for the MediaPlaybackTemplate

Summary

Public constructors

Creates a default Builder.

Creates a new Builder, populated from the input MediaPlaybackTemplate

Public methods

@NonNull MediaPlaybackTemplate

Constructs the template defined by this builder.

@NonNull MediaPlaybackTemplate.Builder

Sets the Header for this template or {code null} to not display a .

Public constructors

Builder

Added in 1.7.0-beta03
public Builder()

Creates a default Builder.

Builder

Added in 1.7.0-beta03
public Builder(@NonNull MediaPlaybackTemplate template)

Creates a new Builder, populated from the input MediaPlaybackTemplate

Public methods

build

Added in 1.7.0-beta03
public @NonNull MediaPlaybackTemplate build()

Constructs the template defined by this builder.

setHeader

Added in 1.7.0-beta03
public @NonNull MediaPlaybackTemplate.Builder setHeader(@Nullable Header header)

Sets the Header for this template or {code null} to not display a .

Defaults to null, which means header is not displayed.