|
YAACC - UPNP Client and Server
|
application which holds the global state More...


Public Member Functions | |
| void | onCreate () |
| ShareRegistry | getShareRegistry () |
| The shares the media proxy serves (links and held files), process wide. | |
| UnclaimedShares | getUnclaimedShares () |
| The shares that no player has claimed yet. | |
| LaunchNonces | getLaunchNonces () |
| The single-use tokens that the launcher puts into a forwarded file share. | |
| PendingShare | getPendingShare () |
| The one pending shared file (waiting for the receiver pick). | |
| Executor | getContentLoadExecutor () |
| UpnpClient | getUpnpClient () |
| boolean | isUnplugged () |
| void | exit () |
| void | createNotificationChannel () |
| void | createYaaccGroupNotification () |
| void | cancelYaaccGroupNotification () |
| void | startShutdownTimer (long duration) |
| Starts the shutdown timer. | |
| void | stopShutdownTimer () |
| boolean | isShutdownTimerRunning () |
| long | getShutdownTimerRemainingMillis () |
| void | addShutdownTimerListener (ShutdownTimerListener listener) |
| Adds a listener that is called on the main thread on every tick. | |
| void | removeShutdownTimerListener (ShutdownTimerListener listener) |
Static Public Member Functions | |
| static long | shareClockMillis () |
The clock of the share registry (monotonic milliseconds), for the code that must agree with it; see ShareRegistry#createDefault(). | |
Static Public Attributes | |
| static final String | NOTIFICATION_CHANNEL_ID = "YaaccNotifications" |
| static final String | NOTIFICATION_GROUP_KEY = "Yaacc" |
application which holds the global state
| void de.yaacc.Yaacc.addShutdownTimerListener | ( | ShutdownTimerListener | listener | ) |
Adds a listener that is called on the main thread on every tick.
The application keeps it until removeShutdownTimerListener(ShutdownTimerListener), so remove it when the UI that owns it stops. Adding the same listener twice has no effect.
Referenced by de.yaacc.browser.ShutdownTimerController.attach().

| LaunchNonces de.yaacc.Yaacc.getLaunchNonces | ( | ) |
The single-use tokens that the launcher puts into a forwarded file share.
Never null.
| PendingShare de.yaacc.Yaacc.getPendingShare | ( | ) |
The one pending shared file (waiting for the receiver pick).
Never null.
| ShareRegistry de.yaacc.Yaacc.getShareRegistry | ( | ) |
The shares the media proxy serves (links and held files), process wide.
Never null.
| long de.yaacc.Yaacc.getShutdownTimerRemainingMillis | ( | ) |
| UnclaimedShares de.yaacc.Yaacc.getUnclaimedShares | ( | ) |
The shares that no player has claimed yet.
Never null.
| boolean de.yaacc.Yaacc.isShutdownTimerRunning | ( | ) |
Referenced by de.yaacc.browser.ShutdownTimerController.setConfiguredMillis().

| void de.yaacc.Yaacc.startShutdownTimer | ( | long | duration | ) |
Starts the shutdown timer.
The timer and its listener calls run on the main thread; a call from another thread is posted there.
Referenced by de.yaacc.browser.ShutdownTimerController.setConfiguredMillis(), de.yaacc.browser.ShutdownTimerController.start(), and de.yaacc.Yaacc.startShutdownTimer().

