|
YAACC - UPNP Client and Server
|
Process-wide background idle timer: exits the app five minutes after the last browser activity stopped, unless something is still running (the rule is AutoCloseRule: the UPnP services, a player, a Snapcast client session or a Snapcast feed).
More...

Static Public Member Functions | |
| static void | processStarted (Context context) |
Call once from Application.onCreate: a process created without a screen (boot, restart) gets the idle timer too; the first browserStarted cancels it. | |
| static void | browserStarted (Context context) |
Call from onStart of a browser activity. | |
| static void | browserStopped (Context context) |
Call from onStop of a browser activity. | |
Process-wide background idle timer: exits the app five minutes after the last browser activity stopped, unless something is still running (the rule is AutoCloseRule: the UPnP services, a player, a Snapcast client session or a Snapcast feed).
Browser activities call browserStarted(Context) from onStart and browserStopped(Context) from onStop; the counting rules are in StartedBrowserCounter.
Only the application context is kept. When the timer fires, the preferences and the player state are read again, so a change made while the app was in the background is respected.