YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.client.SnapcastClientPower.Session Interface Reference

The service of the client; SnapcastClientRuntime and SnapcastClientService in the app. More...

Collaboration diagram for de.yaacc.snapcast.client.SnapcastClientPower.Session:
Collaboration graph

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.
 

Detailed Description

The service of the client; SnapcastClientRuntime and SnapcastClientService in the app.

Member Function Documentation

◆ restart()

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.


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