Optionaloptions: ButtonOptionsThe cast API for this cast button.
The current cast state.
Whether the button is disabled.
When disabled, the button cannot be clicked.
StaticobservedProtected Readonly_onProtected Readonly_onProtected_upgradeProtectedhandleHandle a button click.
By default, this does nothing. Subclasses can override this method to add behavior to the button.
A generic button to start and stop casting.
For a concrete implementation, see ChromecastButton and AirPlayButton.