GestureRecognizer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A gesture recognizer interprets user interactions from hands, motion controllers, and system voice commands to surface spatial gesture events, which users target using their gaze or hand's pointing ray.
public class GestureRecognizer
type GestureRecognizer = class
Public Class GestureRecognizer
- Inheritance
-
GestureRecognizer
Constructors
GestureRecognizer(GestureSettings) |
Create a new GestureRecognizer using the given settings. |
Properties
GestureSettings |
Set the gesture settings to configure which gestures to recognize. |
Methods
CancelPendingGestures() |
Cancel all pending gestures and reset to initial state. All events in the queue will be discarded. |
Destroy() |
Destroy the GestureRecognizer when the application is done with it. |
Dispose() |
Obsolete.
Destroy the GestureRecognizer when the application is done with it. |
Start() |
Start monitor the user interactions and recognize the configured gestures. |
Stop() |
Stop monitor the user interactions |
TryGetNextEvent(GestureEventData) |
Get the next gesture recognition event data, or return false when the event queue is empty. |