YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.discovery.FCastReceivers Class Reference

The FCast receivers of the lists: the directory's entries as devices, and the memory of the selected ones. More...

Inheritance diagram for de.yaacc.fcast.discovery.FCastReceivers:
Inheritance graph
Collaboration diagram for de.yaacc.fcast.discovery.FCastReceivers:
Collaboration graph

Public Member Functions

 FCastReceivers (FCastDirectory directory, Supplier< FCastReceiverDevice.Labels > labels, FCastStoredReceivers remembered)
 
void restore ()
 Puts the remembered receivers of the last run into the directory.
 
synchronized List< FCastReceiverDevice > receivers ()
 The receivers as of now: discovered, typed in and remembered ones, sorted by name.
 
synchronized FCastReceiverDevice findReceiver (String receiverId)
 
void selectionChanged (Collection< String > receiverIds)
 The stored selection changed (the ids of all selected receivers, of any kind): remember the selected FCast receivers across a restart, forget the others.
 
- Public Member Functions inherited from de.yaacc.fcast.discovery.FCastReceiverSource

Additional Inherited Members

- Public Attributes inherited from de.yaacc.fcast.discovery.FCastReceiverSource
FCastReceiverSource NONE
 No receivers; the default of a client that has no hub.
 

Detailed Description

The FCast receivers of the lists: the directory's entries as devices, and the memory of the selected ones.

Pure (the Android parts are in FCastHub).

Why remember. Receivers found by mDNS exist only while a scan runs, but a selected receiver must survive a restart (the app drops a selected id that no device matches). So the selected FCast receivers (their address and name) are stored when the selection changes and put into the directory as remembered entries at the next start: they are listed as offline until the network announces them, and a play to one simply tries to connect.

Member Function Documentation

◆ findReceiver()

synchronized FCastReceiverDevice de.yaacc.fcast.discovery.FCastReceivers.findReceiver ( String receiverId)
Returns
the receiver with this id (fcast:...), or null if it is not known (any more)

Implements de.yaacc.fcast.discovery.FCastReceiverSource.

Here is the call graph for this function:

◆ receivers()

synchronized List< FCastReceiverDevice > de.yaacc.fcast.discovery.FCastReceivers.receivers ( )

The receivers as of now: discovered, typed in and remembered ones, sorted by name.

Cheap: no network.

Implements de.yaacc.fcast.discovery.FCastReceiverSource.

Here is the call graph for this function:

◆ restore()

void de.yaacc.fcast.discovery.FCastReceivers.restore ( )

Puts the remembered receivers of the last run into the directory.

Call once at the start.

Here is the call graph for this function:

◆ selectionChanged()

void de.yaacc.fcast.discovery.FCastReceivers.selectionChanged ( Collection< String > receiverIds)

The stored selection changed (the ids of all selected receivers, of any kind): remember the selected FCast receivers across a restart, forget the others.

Does not block on the network.

Implements de.yaacc.fcast.discovery.FCastReceiverSource.

Here is the call graph for this function:

The documentation for this class was generated from the following file: