YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.session.CommandThread Class Reference

Where the commands of the user go out. More...

Collaboration diagram for de.yaacc.sendspin.session.CommandThread:
Collaboration graph

Static Public Member Functions

static boolean onMainThread ()
 True on the main thread of the app (never in a JVM test, where there is no looper).
 
static void run (Runnable task)
 Runs the task now, or, on the main thread, later on the command thread.
 

Detailed Description

Where the commands of the user go out.

A tap, a slider and a close are made on the main thread, which must not write to a socket (Android throws NetworkOnMainThreadException). run runs the task at once when the caller is not the main thread and on one background thread, in the order of the calls, when it is. The threads of a connection are not affected.


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