ActionMediaControl
A MediaControl which can be performed on active media.
When launch is invoked on an ActionMediaControl, it is converted to a suitable Action reflecting its current state.
The MediaControlContext gives access to the current state of media playback and hides the link to the media service implementation.
Parameters
The context in which this control operates.
See also
Inheritors
Inherited properties
The type of the control, which is used by TtButton to apply one of the predefined styles. May be overridden in subclasses in order to apply a specialized style. TtButton.ActionType.TERTIARY is used by default as the most neutral option.
Whether or not it is possible to launch the action right now.
Whether the control is visible. This can be used to show the control as disabled. Defaults to isAvailable.
Inherited functions
Creates a TtButtonViewModel representation of this MediaControl as an icon button. This implies only the drawable is included.