The LeapGesture class represents a recognized movement by the user.
More...
Inherits NSObject.
Inherited by LeapCircleGesture, LeapKeyTapGesture, LeapScreenTapGesture, and LeapSwipeGesture.
The LeapGesture class represents a recognized movement by the user.
Compare LeapGesture object equality.
[thisGesture equals:thatGesture];
- Parameters
-
The elapsed duration of the recognized movement up to the frame containing this LeapGesture object, in microseconds.
int64_t microseconds = gesture.duration;
- Returns
- int64_t the elapsed duration in microseconds.
- (float) durationSeconds |
|
readnonatomicassign |
The elapsed duration in seconds.
float seconds = gesture.duration;
- See also
- duration
- Returns
- float the elapsed duration in seconds.
The list of hands associated with this LeapGesture, if any.
NSArray *handList = gesture.hands;
LeapHand *gesturingHand = [handList objectAtIndex:0];
- Returns
- NSArray the list of related LeapHand objects.
The gesture ID.
int gestureID = gesture.id;
- Returns
- int32_t the ID of this LeapGesture.
Reports whether this LeapGesture instance represents a valid gesture.
LeapGesture *trackedGesture = [frame gesture:trackedGestureID];
{
}
- Returns
- bool Yes, if this is a valid LeapGesture instance; NO, otherwise.
The list of fingers and tools associated with this LeapGesture, if any.
NSArray *pointableList = gesture.pointables;
LeapHand *gesturingPointable = [pointableList objectAtIndex:0];
- Returns
- NSArray the list of related LeapPointable objects.
- (LeapGestureState) state |
|
readnonatomicassign |
The gesture state.
- Returns
- LeapGestureState A value from the LeapGestureState enumeration.
The gesture type.
LeapGestureType type = gesture.type;
- Returns
- LeapGestureType A value from the LeapGestureType enumeration.