July 2017
Beginner to intermediate
390 pages
10h 53m
English
Using this class in our code, we can detect if a source is pressed. It does not matter how the event is raised--this could be an air-tap, a voice command, or by using the clicker. However, if we want to know more about what is going on, we can use another class in the Windows.UI.Input.Spatial namespace--the SpatialGestureRecognizer class.
This class takes the data from the InteractionManager and turns that into more meaningful data. This class can generate events depending on the kind of gesture the user uses. For most gestures, it recognizes the Started, Completed, Updated, and Cancelled states. These are those gestures:
Next to these, it also has the RecognitionStarted, RecognitionEnded ...
Read now
Unlock full access