YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.browser.BackgroundIdleTimer Class Reference

Process-wide background idle timer: exits the app five minutes after the last browser activity stopped, unless something is still running. More...

Collaboration diagram for de.yaacc.browser.BackgroundIdleTimer:
Collaboration graph

Static Public Member Functions

static void browserStarted (Context context)
 Call from onStart of a browser activity.
 
static void browserStopped (Context context)
 Call from onStop of a browser activity.
 

Detailed Description

Process-wide background idle timer: exits the app five minutes after the last browser activity stopped, unless something is still running.

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.


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