MediaPlaybackStyle


@CarProtocol
@RequiresCarApi(value = 9)
@ExperimentalCarApi
public final class MediaPlaybackStyle


Defines the visual style for a MediaPlaybackTemplate.

This style can be used to customize media playback interactive controls and progress indicators, such as their accent color and stroke cap shape.

Summary

Nested types

public final class MediaPlaybackStyle.Builder

A builder of MediaPlaybackStyle.

Public methods

boolean
@Nullable CarColor

Returns the custom media accent CarColor for interactive controls, or null if none was set.

int

Returns the StrokeCap shape for the playback progress bar, or DEFAULT if not set.

int
@NonNull String

Public methods

equals

public boolean equals(@Nullable Object other)

getMediaAccentColor

Added in 1.9.0-alpha02
public @Nullable CarColor getMediaAccentColor()

Returns the custom media accent CarColor for interactive controls, or null if none was set.

getProgressBarStrokeCap

Added in 1.9.0-alpha02
public int getProgressBarStrokeCap()

Returns the StrokeCap shape for the playback progress bar, or DEFAULT if not set.

hashCode

public int hashCode()

toString

public @NonNull String toString()