Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Instance Methods | Properties | List of all members
DelayingGestureRecognizer Class Reference
Inheritance diagram for DelayingGestureRecognizer:

Instance Methods

(instancetype) - initWithTarget:action:forwardingRecognizer:
 
(BOOL- gestureRecognizer:shouldBeRequiredToFailByGestureRecognizer: [implementation]
 
(BOOL- gestureRecognizer:shouldRequireFailureOfGestureRecognizer: [implementation]
 
(void) - touchesBegan:withEvent: [implementation]
 
(void) - touchesEnded:withEvent: [implementation]
 
(void) - touchesCancelled:withEvent: [implementation]
 

Properties

BOOL shouldEndInNextTouchesEnded
 
BOOL touchedEndedWithoutBlocking
 
UIGestureRecognizer * forwardingRecognizer
 

Detailed Description

Definition at line 947 of file FlutterPlatformViews.mm.

Method Documentation

◆ gestureRecognizer:shouldBeRequiredToFailByGestureRecognizer:

- (BOOL) gestureRecognizer: (UIGestureRecognizer*)  gestureRecognizer
shouldBeRequiredToFailByGestureRecognizer: (UIGestureRecognizer*)  otherGestureRecognizer 
implementation

Definition at line 983 of file FlutterPlatformViews.mm.

1082 :(UIGestureRecognizer*)gestureRecognizer
1083 shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer*)otherGestureRecognizer {
1084 // The forwarding gesture recognizer should always get all touch events, so it should not be
1085 // required to fail by any other gesture recognizer.
1086 return otherGestureRecognizer != _forwardingRecognizer && otherGestureRecognizer != self;
1087}

◆ gestureRecognizer:shouldRequireFailureOfGestureRecognizer:

- (BOOL) gestureRecognizer: (UIGestureRecognizer*)  gestureRecognizer
shouldRequireFailureOfGestureRecognizer: (UIGestureRecognizer*)  otherGestureRecognizer 
implementation

Definition at line 983 of file FlutterPlatformViews.mm.

1089 :(UIGestureRecognizer*)gestureRecognizer
1090 shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer*)otherGestureRecognizer {
1091 return otherGestureRecognizer == self;
1092}

◆ initWithTarget:action:forwardingRecognizer:

- (instancetype) initWithTarget: (id target
action: (SEL)  action
forwardingRecognizer: (UIGestureRecognizer*)  forwardingRecognizer 

Definition at line 983 of file FlutterPlatformViews.mm.

1067 :(id)target
1068 action:(SEL)action
1069 forwardingRecognizer:(UIGestureRecognizer*)forwardingRecognizer {
1070 self = [super initWithTarget:target action:action];
1071 if (self) {
1072 self.delaysTouchesBegan = YES;
1073 self.delaysTouchesEnded = YES;
1074 self.delegate = self;
1075 _shouldEndInNextTouchesEnded = NO;
1076 _touchedEndedWithoutBlocking = NO;
1077 _forwardingRecognizer = forwardingRecognizer;
1078 }
1079 return self;
1080}
uint32_t * target
UIGestureRecognizer * forwardingRecognizer
const uintptr_t id

◆ touchesBegan:withEvent:

- (void) touchesBegan: (NSSet<UITouch*>*)  touches
withEvent: (UIEvent*)  event 
implementation

Definition at line 983 of file FlutterPlatformViews.mm.

1094 :(NSSet<UITouch*>*)touches withEvent:(UIEvent*)event {
1095 self.touchedEndedWithoutBlocking = NO;
1096 [super touchesBegan:touches withEvent:event];
1097}

◆ touchesCancelled:withEvent:

- (void) touchesCancelled: (NSSet*)  touches
withEvent: (UIEvent*)  event 
implementation

Definition at line 983 of file FlutterPlatformViews.mm.

1109 :(NSSet*)touches withEvent:(UIEvent*)event {
1110 self.state = UIGestureRecognizerStateFailed;
1111}

◆ touchesEnded:withEvent:

- (void) touchesEnded: (NSSet<UITouch*>*)  touches
withEvent: (UIEvent*)  event 
implementation

Definition at line 983 of file FlutterPlatformViews.mm.

1099 :(NSSet<UITouch*>*)touches withEvent:(UIEvent*)event {
1100 if (self.shouldEndInNextTouchesEnded) {
1101 self.state = UIGestureRecognizerStateEnded;
1102 self.shouldEndInNextTouchesEnded = NO;
1103 } else {
1104 self.touchedEndedWithoutBlocking = YES;
1105 }
1106 [super touchesEnded:touches withEvent:event];
1107}

Property Documentation

◆ forwardingRecognizer

- (UIGestureRecognizer*) forwardingRecognizer
readnonatomicassign

Definition at line 957 of file FlutterPlatformViews.mm.

◆ shouldEndInNextTouchesEnded

- (BOOL) shouldEndInNextTouchesEnded
readwritenonatomicassign

Definition at line 951 of file FlutterPlatformViews.mm.

◆ touchedEndedWithoutBlocking

- (BOOL) touchedEndedWithoutBlocking
readwritenonatomicassign

Definition at line 955 of file FlutterPlatformViews.mm.


The documentation for this class was generated from the following file: