Class CastImpl

java.lang.Object
io.webfolder.cdp.command.CastImpl
All Implemented Interfaces:
Cast

public class CastImpl
extends java.lang.Object
implements Cast
  • Constructor Summary

    Constructors 
    Constructor Description
    CastImpl​(SessionInvocationHandler handler)  
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • enable

      public void enable​(java.lang.String presentationUrl)
      Description copied from interface: Cast
      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.
      Specified by:
      enable in interface Cast
    • disable

      public void disable()
      Description copied from interface: Cast
      Stops observing for sinks and issues.
      Specified by:
      disable in interface Cast
    • setSinkToUse

      public void setSinkToUse​(java.lang.String sinkName)
      Description copied from interface: Cast
      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.
      Specified by:
      setSinkToUse in interface Cast
    • startTabMirroring

      public void startTabMirroring​(java.lang.String sinkName)
      Description copied from interface: Cast
      Starts mirroring the tab to the sink.
      Specified by:
      startTabMirroring in interface Cast
    • stopCasting

      public void stopCasting​(java.lang.String sinkName)
      Description copied from interface: Cast
      Stops the active Cast session on the sink.
      Specified by:
      stopCasting in interface Cast
    • enable

      public void enable()
      Description copied from interface: Cast
      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.
      Specified by:
      enable in interface Cast