MediaPlaybackStyle


@CarProtocol
@RequiresCarApi(value = 9)
@ExperimentalCarApi
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

A builder of MediaPlaybackStyle.

Public functions

Boolean
equals(other: Any?)
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
String

Public functions

equals

fun equals(other: Any?): Boolean

getMediaAccentColor

Added in 1.9.0-alpha02
fun getMediaAccentColor(): CarColor?

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

getProgressBarStrokeCap

Added in 1.9.0-alpha02
fun getProgressBarStrokeCap(): Int

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

hashCode

fun hashCode(): Int

toString

fun toString(): String