Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
 

Detailed Description

Definition at line 949 of file FlutterPlatformViews.mm.

Method Documentation

◆ gestureRecognizer:shouldBeRequiredToFailByGestureRecognizer:

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

Definition at line 987 of file FlutterPlatformViews.mm.

1095 :(UIGestureRecognizer*)gestureRecognizer
1096 shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer*)otherGestureRecognizer {
1097 // The forwarding gesture recognizer should always get all touch events, so it should not be
1098 // required to fail by any other gesture recognizer.
1099 return otherGestureRecognizer != _forwardingRecognizer.get() && otherGestureRecognizer != self;
1100}
const myers::Point & get(const myers::Segment &)

◆ gestureRecognizer:shouldRequireFailureOfGestureRecognizer:

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

Definition at line 987 of file FlutterPlatformViews.mm.

1102 :(UIGestureRecognizer*)gestureRecognizer
1103 shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer*)otherGestureRecognizer {
1104 return otherGestureRecognizer == self;
1105}

◆ initWithTarget:action:forwardingRecognizer:

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

Definition at line 987 of file FlutterPlatformViews.mm.

1080 :(id)target
1081 action:(SEL)action
1082 forwardingRecognizer:(UIGestureRecognizer*)forwardingRecognizer {
1083 self = [super initWithTarget:target action:action];
1084 if (self) {
1085 self.delaysTouchesBegan = YES;
1086 self.delaysTouchesEnded = YES;
1087 self.delegate = self;
1088 self.shouldEndInNextTouchesEnded = NO;
1089 self.touchedEndedWithoutBlocking = NO;
1090 _forwardingRecognizer.reset([forwardingRecognizer retain]);
1091 }
1092 return self;
1093}
uint32_t * target
const uintptr_t id

◆ touchesBegan:withEvent:

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

Definition at line 987 of file FlutterPlatformViews.mm.

1107 :(NSSet<UITouch*>*)touches withEvent:(UIEvent*)event {
1109 [super touchesBegan:touches withEvent:event];
1110}
FlKeyEvent * event

◆ touchesCancelled:withEvent:

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

Definition at line 987 of file FlutterPlatformViews.mm.

1122 :(NSSet*)touches withEvent:(UIEvent*)event {
1123 self.state = UIGestureRecognizerStateFailed;
1124}
AtkStateType state

◆ touchesEnded:withEvent:

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

Definition at line 987 of file FlutterPlatformViews.mm.

1112 :(NSSet<UITouch*>*)touches withEvent:(UIEvent*)event {
1114 self.state = UIGestureRecognizerStateEnded;
1115 self.shouldEndInNextTouchesEnded = NO;
1116 } else {
1117 self.touchedEndedWithoutBlocking = YES;
1118 }
1119 [super touchesEnded:touches withEvent:event];
1120}
if(end==-1)

Property Documentation

◆ shouldEndInNextTouchesEnded

- (bool) shouldEndInNextTouchesEnded
readwritenonatomicassign

Definition at line 953 of file FlutterPlatformViews.mm.

◆ touchedEndedWithoutBlocking

- (bool) touchedEndedWithoutBlocking
readwritenonatomicassign

Definition at line 957 of file FlutterPlatformViews.mm.


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