The switch of Snapcast on the first page, like the one of Sendspin (SendspinPower).
More...
|
| static boolean | offered (SnapcastSettings.BooleanSource source) |
| |
| static boolean | isOn (SnapcastSettings.BooleanSource source) |
| |
| static Map< String, Boolean > | changesFor (boolean on) |
| |
The switch of Snapcast on the first page, like the one of Sendspin (SendspinPower).
It is offered while the Snapcast support is on in the settings, and the switch is the setting of the Snapcast services: the server and the client of this phone run only while it is on (and with their own switches, see SnapcastSettings). Searching and playing to groups need only the support switch. Pure: the caller writes the changes.
◆ changesFor()
| static Map< String, Boolean > de.yaacc.snapcast.SnapcastPower.changesFor |
( |
boolean | on | ) |
|
|
static |
- Returns
- the settings to write when the switch is set to
on
◆ isOn()
| static boolean de.yaacc.snapcast.SnapcastPower.isOn |
( |
SnapcastSettings.BooleanSource | source | ) |
|
|
static |
- Returns
- true while the services are on
◆ offered()
| static boolean de.yaacc.snapcast.SnapcastPower.offered |
( |
SnapcastSettings.BooleanSource | source | ) |
|
|
static |
- Returns
- true if the switch is shown: the Snapcast support is on in the settings
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/snapcast/SnapcastPower.java