|
YAACC - UPNP Client and Server
|
The service of the client; SnapcastClientRuntime and SnapcastClientService in the app.
More...

Public Member Functions | |
| boolean | isActive () |
| A session is starting or running. | |
| SnapcastClientRuntime.Phase | phase () |
| void | start (String host, int latencyMs, int writeAheadMs, boolean flacGuard) |
| Starts the foreground service; may throw when the system refuses a start from the background. | |
| void | stop () |
| boolean | restartPending () |
| A restart waits for the end of the old session, to start the new one. | |
| void | restart (String host, int latencyMs, int writeAheadMs, boolean flacGuard, Consumer< RuntimeException > onFailure) |
Ends the session, waits until it is gone, then starts it on host; a start that is refused then is reported to onFailure. | |
The service of the client; SnapcastClientRuntime and SnapcastClientService in the app.
| void de.yaacc.snapcast.client.SnapcastClientPower.Session.restart | ( | String | host, |
| int | latencyMs, | ||
| int | writeAheadMs, | ||
| boolean | flacGuard, | ||
| Consumer< RuntimeException > | onFailure ) |
Ends the session, waits until it is gone, then starts it on host; a start that is refused then is reported to onFailure.
A later stop cancels the restart.