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 voidregisterListener(ChromeCastsListener listener) static voidRestarts discovery by sequentially calling 'stop' and 'start' methods.static voidrestartDiscovery(InetAddress addr) Restarts discovery by sequentially calling 'stop' and 'start' methods.static voidStarts ChromeCast device discovery.static voidstartDiscovery(InetAddress addr) Starts ChromeCast device discovery.static voidStops ChromeCast device discovery.static voidunregisterListener(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
-