@Deprecated
public class SgestureHand
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SgestureHand.ChangeListener
Deprecated.
|
static class |
SgestureHand.Info
Deprecated.
|
Constructor and Description |
---|
SgestureHand(android.os.Looper looper,
Sgesture gesture)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
start(int type,
SgestureHand.ChangeListener listener)
Deprecated.
|
void |
stop()
Deprecated.
|
public SgestureHand(android.os.Looper looper, Sgesture gesture)
looper
- The looper of the main thread in your application.gesture
- The Sgesture instance.java.lang.NullPointerException
- Thrown if the looper or Sgesture object
passed is null.java.lang.IllegalArgumentException
- Thrown if the Context passed is null.
This can happen if you did not initialize the Gesture package
before creating the SgestureHand instance.java.lang.IllegalStateException
- Thrown if the device does not support
SgestureHand.public void start(int type, SgestureHand.ChangeListener listener)
type
- The SgestureHand type.listener
- The ChangeListener instance.java.lang.IllegalStateException
- Thrown if a listener is already registered
or the device does not support SgestureHand.java.lang.IllegalArgumentException
- Thrown if the type passed is not valid
or the listener passed is null.public void stop()
java.lang.IllegalStateException
- Thrown when stop() is called before calling
the start() method.