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

Task 12.6 / 12C: whether the phone's own Snapcast client is started again by the application (at the start of the process, which a reboot with "autostart on boot" also is, and as one more try when a screen starts). More...

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

Classes

class  Decision
 The answer: restore, or skip with the reason.
 
class  Facts
 What is known when the question is asked.
 
enum  Point
 Where the restore is asked for. More...
 
enum  Skip
 Why nothing is started; the order of the constants is the order in which the reasons are checked. More...
 

Static Public Member Functions

static Decision decide (Facts facts)
 
static boolean isFailure (String endingName)
 

Detailed Description

Task 12.6 / 12C: whether the phone's own Snapcast client is started again by the application (at the start of the process, which a reboot with "autostart on boot" also is, and as one more try when a screen starts).

Pure: the facts come in, the decision goes out.

Restore only when ALL hold: the client is switched on, the option is on, a server is set, no session runs, the app is not in the hold-back window after an exit, the last ending is not an unseen failure, and no attempt was made in this process yet. The one exception to "no attempt yet": a start that the system REFUSED (Android 12 and newer limit foreground service starts from the background) is tried once more when a screen starts, and never a third time.

Member Function Documentation

◆ isFailure()

static boolean de.yaacc.snapcast.client.SnapcastClientRestore.isFailure ( String endingName)
static
Returns
whether the stored ending name is a failure of a session; false for null or a name that is not known

Referenced by de.yaacc.snapcast.client.SnapcastClientPower.state().

Here is the caller graph for this function:

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