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