public interface Cast
| Modifier and Type | Method and 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(String presentationUrl)
Starts observing for sinks that can be used for tab mirroring, and if set, sinks compatible
with |presentationUrl| as well.
|
EventListener |
onIssueUpdated(EventHandler<IssueUpdated> eventListener)
This is fired whenever the outstanding issue/error message changes.
|
EventListener |
onSinksUpdated(EventHandler<SinksUpdated> eventListener)
This is fired whenever the list of available sinks changes.
|
void |
setSinkToUse(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(String sinkName)
Starts mirroring the tab to the sink.
|
void |
stopCasting(String sinkName)
Stops the active Cast session on the sink.
|
void enable()
void enable(String presentationUrl)
presentationUrl - void disable()
void setSinkToUse(String sinkName)
sinkName - void startTabMirroring(String sinkName)
sinkName - void stopCasting(String sinkName)
sinkName - EventListener onSinksUpdated(EventHandler<SinksUpdated> eventListener)
EventListener onIssueUpdated(EventHandler<IssueUpdated> eventListener)
Copyright © 2020. All rights reserved.