YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.client.SnapcastClientPowers Class Reference

The SnapcastClientPower of the app: its state in the default preferences, its session the process-wide SnapcastClientRuntime and the SnapcastClientService. More...

Collaboration diagram for de.yaacc.snapcast.client.SnapcastClientPowers:
Collaboration graph

Static Public Member Functions

static synchronized SnapcastClientPower of (Context context)
 
static void restore (Context context, SnapcastClientRestore.Point point, boolean exitHold)
 The application starts the client again from its state: at the end of the startup route and when the user starts the app.
 
static List< SnapcastServerChoices.Choice > knownServers (Context context)
 The servers the client can use, as SnapcastServerChoices builds them from the server list (typed in, remembered, found) and the address the listen test used last: host only, the client connects to the stream port 1704 (the limit of the list, see the notes).
 
static SnapcastServerChoices.Choice currentServer (Context context)
 The server the client uses now: the last one it was connected to, else the first known one; null when none is known.
 
static int currentServerIndex (Context context, List< SnapcastServerChoices.Choice > known)
 The position of the current server in known (to mark it in the list); -1 when the list is empty.
 

Detailed Description

The SnapcastClientPower of the app: its state in the default preferences, its session the process-wide SnapcastClientRuntime and the SnapcastClientService.

One object per process (it counts the restore attempts of the process). Thin Android glue; the decisions are in SnapcastClientPower and SnapcastClientRestore.

Member Function Documentation

◆ knownServers()

static List< SnapcastServerChoices.Choice > de.yaacc.snapcast.client.SnapcastClientPowers.knownServers ( Context context)
static

The servers the client can use, as SnapcastServerChoices builds them from the server list (typed in, remembered, found) and the address the listen test used last: host only, the client connects to the stream port 1704 (the limit of the list, see the notes).

In memory, no network. At most SnapcastServerChoices#MAX_CHOICES.

Referenced by de.yaacc.snapcast.client.SnapcastClientPowers.currentServer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ restore()

static void de.yaacc.snapcast.client.SnapcastClientPowers.restore ( Context context,
SnapcastClientRestore.Point point,
boolean exitHold )
static

The application starts the client again from its state: at the end of the startup route and when the user starts the app.

Never throws (the startup of the app must go on).

Referenced by de.yaacc.Yaacc.userStarted().

Here is the call graph for this function:
Here is the caller graph for this function:

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