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

application which holds the global state More...

Inheritance diagram for de.yaacc.Yaacc:
Inheritance graph
Collaboration diagram for de.yaacc.Yaacc:
Collaboration graph

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"
 

Detailed Description

application which holds the global state

Author
Tobias Schoene (tobexyz)

Member Function Documentation

◆ addShutdownTimerListener()

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().

Here is the caller graph for this function:

◆ getLaunchNonces()

LaunchNonces de.yaacc.Yaacc.getLaunchNonces ( )

The single-use tokens that the launcher puts into a forwarded file share.

Never null.

◆ getPendingShare()

PendingShare de.yaacc.Yaacc.getPendingShare ( )

The one pending shared file (waiting for the receiver pick).

Never null.

◆ getShareRegistry()

ShareRegistry de.yaacc.Yaacc.getShareRegistry ( )

The shares the media proxy serves (links and held files), process wide.

Never null.

◆ getShutdownTimerRemainingMillis()

long de.yaacc.Yaacc.getShutdownTimerRemainingMillis ( )
Returns
the time left on the running shutdown timer as of the last tick, 0 if none runs

◆ getUnclaimedShares()

UnclaimedShares de.yaacc.Yaacc.getUnclaimedShares ( )

The shares that no player has claimed yet.

Never null.

◆ isShutdownTimerRunning()

boolean de.yaacc.Yaacc.isShutdownTimerRunning ( )
Returns
true while a shutdown timer is counting down

Referenced by de.yaacc.browser.ShutdownTimerController.setConfiguredMillis().

Here is the caller graph for this function:

◆ startShutdownTimer()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

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