ToggleActionMediaControl
An ActionMediaControl with two states: activated and deactivated.
It's activated when the activatedAction is present in the context.
It's available if either activatedAction or activateAction are present in the context.
Constructors
Properties
The action is activated when one or more activatedAction are present in the context.
The action is available if activatedAction or activateAction are present in the context.
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 the control is visible. This can be used to show the control as disabled. Defaults to isAvailable.
Functions
Inherited functions
Creates a TtButtonViewModel representation of this MediaControl as an icon button. This implies only the drawable is included.