CompositeMediaControl
class CompositeMediaControl(controls: List<MediaControl>) : ToggleMediaControl
Content copied to clipboard
Continuously picks the first visible media control from the given controls
list, and delegates all calls to it. If there is no visible control, it will delegate to the last control in the list.
Can wrap MediaControl and ToggleMediaControls.
Parameters
controls
List of controls to aggregate.
Throws
when no controls are supplied.
Note: The MediaControlPriority provided to the Factory is used for all contained media controls.
Constructors
Types
Link copied to clipboard
class Factory(val priority: MediaControlPriority, factories: MediaControlFactory) : MediaControlFactory
Content copied to clipboard
MediaControlFactory implementation that is used to create CompositeMediaControl instances.
Properties
Link copied to clipboard
Whether the control is visible. This can be used to show the control as disabled. Defaults to isAvailable.
Functions
Inherited functions
Link copied to clipboard
Creates a TtButtonViewModel representation of this MediaControl as an icon button. This implies only the drawable is included.