MediaButtonsConfiguration

@IviExperimental(reasons = [])
class MediaButtonsConfiguration(val replacedStandardControls: Map<StandardMediaControls, MediaControlFactory>, val customControls: List<MediaControlFactory>?, val primaryMediaButtonsLimit: Int, val secondaryMediaButtonsLimit: Int)

Configuration of media controls given to a MediaButtonsViewModel. Could be created from a MediaControlPolicy.

Parameters

replacedStandardControls

Customized standard media controls. See also: MediaControlPolicy.replacedStandardControls.

customControls

Custom media controls. See also: MediaControlPolicy.customControls.

primaryMediaButtonsLimit
secondaryMediaButtonsLimit

Constructors

Link copied to clipboard
constructor(replacedStandardControls: Map<StandardMediaControls, MediaControlFactory>, customControls: List<MediaControlFactory>?, primaryMediaButtonsLimit: Int, secondaryMediaButtonsLimit: Int)

Functions

Link copied to clipboard

Returns the replacing media control factories with the one provided in customControls. If customControls is null, it uses the original custom controls from the source for the given custom actions.

Link copied to clipboard

Returns the replacing media control factory for the given standardMediaControl with the one provided in replacedStandardControls. Otherwise use the standard control default factory, or InvisibleControlFactory if there is no default factory.