BaseGestureRecognizer
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
BaseGestureRecognizer serves as the foundation for gesture recognition in Sceneform, such as drag, pinch, and twist gestures.
It processes touch input to identify gesture starts and triggers corresponding events.
Developers can listen to gesture object events to track gesture updates and completion.
Gesture Recognizers are extended by concrete classes like DragGestureRecognizer, PinchGestureRecognizer, and TwistGestureRecognizer to handle specific user interactions.
BaseGestureRecognizer includes methods to add and remove gesture start listeners, as well as an abstract method tryCreateGestures to be implemented by subclasses for gesture creation logic.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[],["`BaseGestureRecognizer` is an abstract class that processes touch inputs to detect gestures. It includes subclasses like `DragGestureRecognizer`, `PinchGestureRecognizer`, and `TwistGestureRecognizer`. The class uses `GesturePointersUtility` and an ArrayList to manage gestures. Key actions involve adding or removing listeners for gesture start events and processing touch inputs with the `onTouch` method. The method `tryCreateGestures` determines if a gesture should start based on touch inputs.\n"]]