IllegalStateException - Thrown if the device does not support
SgestureHand or the SgestureHand instance is not created.
public int getType()
Get the SgestureHand type.
The Sgesture Hand type. The valid value is
TYPE_HAND_PRIMITIVE. For more information, see Field Detail
in the Sgesture class reference.
public long getTimeStamp()
Get the timestamp in nanoseconds.
The time in nanoseconds when the hand gesture event
occurred. Use the timestamp to measure the event duration
by comparing it against another timestamp from the same
process on the same device. Values returned by this method do
not have a defined correspondence to wall clock times. The
zero value is typically whenever the device last booted. You
can use System.currentTimeMillis() to get the time.
public int getAngle()
Get the angle of the hand at the end point of the gesture.
The angle of the hand in degrees.
public int getSpeed()
Get the speed of the hand movement. The speed is measured on a scale
of 0 to 100. If the hand moves fast, the speed is close to 100 and if
the hand moves slowly, the speed is close to 0. If the method returns
-1, the device does not support speed measurements.