Package su.litvak.chromecast.api.v2
Klasse ChromeCasts
java.lang.Object
su.litvak.chromecast.api.v2.ChromeCasts
Utility class that discovers ChromeCast devices and holds references to all of them.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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)
-
Methodendetails
-
get
Returns a copy of the currently seen chrome casts.- Gibt zurück:
- a copy of the currently seen chromecast devices.
-
startDiscovery
Starts ChromeCast device discovery.- Löst aus:
IOException
-
startDiscovery
Starts ChromeCast device discovery.- Parameter:
addr- the address of the interface that should be used for discovery- Löst aus:
IOException
-
stopDiscovery
Stops ChromeCast device discovery.- Löst aus:
IOException
-
restartDiscovery
Restarts discovery by sequentially calling 'stop' and 'start' methods.- Löst aus:
IOException
-
restartDiscovery
Restarts discovery by sequentially calling 'stop' and 'start' methods.- Parameter:
addr- the address of the interface that should be used for discovery- Löst aus:
IOException
-
registerListener
-
unregisterListener
-