public final class

MediaPlaybackTemplate.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.car.app.media.model.MediaPlaybackTemplate.Builder

Overview

Builder for the MediaPlaybackTemplate

Summary

Constructors
publicBuilder()

Creates a default MediaPlaybackTemplate.Builder.

publicBuilder(MediaPlaybackTemplate template)

Creates a new MediaPlaybackTemplate.Builder, populated from the input MediaPlaybackTemplate

Methods
public MediaPlaybackTemplatebuild()

Constructs the template defined by this builder.

public MediaPlaybackTemplate.BuildersetHeader(Header header)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates a default MediaPlaybackTemplate.Builder.

public Builder(MediaPlaybackTemplate template)

Creates a new MediaPlaybackTemplate.Builder, populated from the input MediaPlaybackTemplate

Methods

public MediaPlaybackTemplate.Builder setHeader(Header header)

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

Defaults to null, which means header is not displayed.

public MediaPlaybackTemplate build()

Constructs the template defined by this builder.