ioio.lib.util
Class IOIOApplicationHelper

java.lang.Object
  extended by ioio.lib.util.IOIOApplicationHelper
Direct Known Subclasses:
IOIOAndroidApplicationHelper

public class IOIOApplicationHelper
extends java.lang.Object

A helper class for creating different kinds of IOIO based applications. This class implements a common life-cycle for applications interacting with IOIO devices.

When the application starts, call start(), which will in turn attempt to create a thread for each possible IOIO connection channel. Each thread will have a respective IOIOLooper, which the client provides, through which the client gets context for working with the IOIO.

When the application exits, call stop(), which will disconnect all open connections and will abort and join all the threads.


Constructor Summary
IOIOApplicationHelper(IOIOLooperProvider provider)
           
 
Method Summary
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOIOApplicationHelper

public IOIOApplicationHelper(IOIOLooperProvider provider)
Method Detail

start

public void start()

stop

public void stop()