YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.upnp.server.openhome.AndroidOutputSources Class Reference

The Android side of the source list of the OpenHome renderer (task 12.5): the preferences of the app, the groups the Snapcast hub knows, the message to the user, and the two things that make the controller's list follow the world: a change of the output setting (the settings screen, another controller) and a change of the groups. More...

Collaboration diagram for de.yaacc.upnp.server.openhome.AndroidOutputSources:
Collaboration graph

Public Member Functions

void close ()
 Stops following.
 

Static Public Member Functions

static AndroidOutputSources start (Context context, OhRendererCore core)
 Makes the provider of the core and starts following; close undoes it.
 

Detailed Description

The Android side of the source list of the OpenHome renderer (task 12.5): the preferences of the app, the groups the Snapcast hub knows, the message to the user, and the two things that make the controller's list follow the world: a change of the output setting (the settings screen, another controller) and a change of the groups.

Both only ask the core to read its list again, after a short pause so that a burst of changes is one read, on a thread of its own.

Nothing here makes the hub or opens a connection: the groups are the ones the hub knows (a server that answered since the app started; the hub is made by the Receiver tab, a play into a group or the renderer's group output). When there is none, only this device is listed. The listeners are removed in close; the preference listener is kept in a field because the preferences hold their listeners weakly.

Member Function Documentation

◆ close()

void de.yaacc.upnp.server.openhome.AndroidOutputSources.close ( )

Stops following.

The core keeps the provider (it is only the preferences and the hub that are read).


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