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

The words for the state of the phone's own Snapcast client (the switch on the first page, the listen test) and for the reason of a start that did not happen. More...

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

Static Public Member Functions

static int stateTextRes (SnapcastClientPower.State state)
 The string resource for the state; for a stopped client with a known ending it takes the reason as its argument.
 
static String reasonOf (SnapcastClientPower.State state)
 The reason the last session ended, in words; empty when there is none (or the name is not an ending).
 
static int refusalTextRes (SnapcastClientPower.Outcome outcome)
 The text for a start that did not happen; 0 for an outcome that is no refusal.
 
static String stateText (Context context, SnapcastClientPower.State state)
 The line for the state: "Playing", "Off", "Stopped: <reason>".
 
static String refusalText (Context context, SnapcastClientPower.Outcome outcome)
 The reason for a refusal, or null for an outcome that is none.
 

Detailed Description

The words for the state of the phone's own Snapcast client (the switch on the first page, the listen test) and for the reason of a start that did not happen.

The choice of the string is pure (and tested on the JVM); only stateText and refusalText need a context.


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