MediaSourceAttributionPolicy

A policy for media source attributes customization.

This policy is used to acquire a source's name and logo, and to tailor visual elements such as icons to the source's branding.

Inheritors

Properties

Link copied to clipboard

A DrawableResolver symbolizing the media that is currently playing.

Link copied to clipboard

A DrawableResolver symbolizing the media that is queued to be played next.

Functions

Link copied to clipboard
open fun getLogo(sourceInfo: SourceInfo?, mediaItem: IviMediaItem?, sourceAttributionFormat: SourceAttributionFormat = SourceAttributionFormat()): DrawableResolver?

Retrieves logo of the media source.

Link copied to clipboard
open fun getName(sourceInfo: SourceInfo?, mediaItem: IviMediaItem?, sourceAttributionFormat: SourceAttributionFormat = SourceAttributionFormat()): StringResolver?

Retrieves name of the media source.

Link copied to clipboard
open fun getStyle(): SourceStyle?

Retrieves the SourceStyle of the media source. Can be used to override the default accentColor of the source.