Interface Cast

All Known Implementing Classes:
CastImpl

public interface Cast
A domain for interacting with Cast, Presentation API, and Remote Playback API functionalities
  • Method Summary

    Modifier and Type Method Description
    void disable()
    Stops observing for sinks and issues.
    void enable()
    Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well.
    void enable​(java.lang.String presentationUrl)
    Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well.
    void setSinkToUse​(java.lang.String sinkName)
    Sets a sink to be used when the web page requests the browser to choose a sink via Presentation API, Remote Playback API, or Cast SDK.
    void startTabMirroring​(java.lang.String sinkName)
    Starts mirroring the tab to the sink.
    void stopCasting​(java.lang.String sinkName)
    Stops the active Cast session on the sink.
  • Method Details

    • enable

      void enable​(java.lang.String presentationUrl)
      Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well. When sinks are found, a |sinksUpdated| event is fired. Also starts observing for issue messages. When an issue is added or removed, an |issueUpdated| event is fired.
    • disable

      void disable()
      Stops observing for sinks and issues.
    • setSinkToUse

      void setSinkToUse​(java.lang.String sinkName)
      Sets a sink to be used when the web page requests the browser to choose a sink via Presentation API, Remote Playback API, or Cast SDK.
    • startTabMirroring

      void startTabMirroring​(java.lang.String sinkName)
      Starts mirroring the tab to the sink.
    • stopCasting

      void stopCasting​(java.lang.String sinkName)
      Stops the active Cast session on the sink.
    • enable

      void enable()
      Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible with |presentationUrl| as well. When sinks are found, a |sinksUpdated| event is fired. Also starts observing for issue messages. When an issue is added or removed, an |issueUpdated| event is fired.