updateGestureRecognizers method

void updateGestureRecognizers(
  1. Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers
)

Updates which gestures should be forwarded to the platform view.

Gesture recognizers created by factories in this set participate in the gesture arena for each pointer that was put down on the render box. If any of the recognizers on this list wins the gesture arena, the entire pointer event sequence starting from the pointer down event will be dispatched to the Android view.

The gestureRecognizers property must not contain more than one factory with the same Factory.type.

Setting a new set of gesture recognizer factories with the same Factory.types as the current set has no effect, because the factories' constructors would have already been called with the previous set.

Any active gesture arena the PlatformView participates in is rejected when the set of gesture recognizers is changed.

Implementation

void updateGestureRecognizers(Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers) {
  _updateGestureRecognizersWithCallBack(gestureRecognizers, _controller.dispatchPointerEvent);
}