Package su.litvak.chromecast.api.v2
Class ChromeCasts
java.lang.Object
su.litvak.chromecast.api.v2.ChromeCasts
Utility class that discovers ChromeCast devices and holds references to all of them.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<ChromeCast> get()
Returns a copy of the currently seen chrome casts.static void
registerListener
(ChromeCastsListener listener) static void
Restarts discovery by sequentially calling 'stop' and 'start' methods.static void
restartDiscovery
(InetAddress addr) Restarts discovery by sequentially calling 'stop' and 'start' methods.static void
Starts ChromeCast device discovery.static void
startDiscovery
(InetAddress addr) Starts ChromeCast device discovery.static void
Stops ChromeCast device discovery.static void
unregisterListener
(ChromeCastsListener listener)
-
Method Details
-
get
Returns a copy of the currently seen chrome casts.- Returns:
- a copy of the currently seen chromecast devices.
-
startDiscovery
Starts ChromeCast device discovery.- Throws:
IOException
-
startDiscovery
Starts ChromeCast device discovery.- Parameters:
addr
- the address of the interface that should be used for discovery- Throws:
IOException
-
stopDiscovery
Stops ChromeCast device discovery.- Throws:
IOException
-
restartDiscovery
Restarts discovery by sequentially calling 'stop' and 'start' methods.- Throws:
IOException
-
restartDiscovery
Restarts discovery by sequentially calling 'stop' and 'start' methods.- Parameters:
addr
- the address of the interface that should be used for discovery- Throws:
IOException
-
registerListener
-
unregisterListener
-