Factory

MediaControlFactory implementation that is used to create CompositeMediaControl instances.

Note: priority is used for all contained media controls. The priorities of grouped factories are ignored.

Parameters

priority

Priority of the created CompositeMediaControl.

factories

List of media control factories used to create CompositeMediaControl. The order of factories matches the order of the controls in the composite control.

Constructors

Link copied to clipboard
fun Factory(priority: MediaControlPriority, vararg factories: MediaControlFactory)

Properties

Link copied to clipboard
open override val priority: MediaControlPriority

Functions

Link copied to clipboard
open override fun createControlFor(mediaControlContext: MediaControlContext): CompositeMediaControl

Creates a MediaControl for the given mediaControlContext. The context can be used to determine any of the properties of a MediaControl, or when the control is launched.