Flutter Engine
The Flutter Engine
Instance Methods | Properties | List of all members
FlutterTouchInterceptingView Class Reference

#import <FlutterPlatformViews_Internal.h>

Inheritance diagram for FlutterTouchInterceptingView:

Instance Methods

(instancetype) - initWithEmbeddedView:platformViewsController:gestureRecognizersBlockingPolicy:
 
(void) - releaseGesture
 
(void) - blockGesture
 
(UIView *) - embeddedView
 
(void) - touchesBegan:withEvent: [implementation]
 
(void) - touchesMoved:withEvent: [implementation]
 
(void) - touchesCancelled:withEvent: [implementation]
 
(void) - touchesEnded:withEvent: [implementation]
 
(id- accessibilityContainer [implementation]
 

Properties

id flutterAccessibilityContainer
 
DelayingGestureRecognizerdelayingRecognizer [implementation]
 
FlutterPlatformViewGestureRecognizersBlockingPolicy blockingPolicy [implementation]
 

Detailed Description

Definition at line 986 of file FlutterPlatformViews.mm.

Method Documentation

◆ accessibilityContainer

- (id) accessibilityContainer
implementation

Provided by category FlutterTouchInterceptingView(Tests).

Definition at line 983 of file FlutterPlatformViews.mm.

1059 {
1060 return self.flutterAccessibilityContainer;
1061}

◆ blockGesture

- (void) blockGesture

Definition at line 983 of file FlutterPlatformViews.mm.

1020 {
1021 switch (_blockingPolicy) {
1023 // We block all other gesture recognizers immediately in this policy.
1024 self.delayingRecognizer.state = UIGestureRecognizerStateEnded;
1025 break;
1028 // If touchesEnded of the `DelayingGesureRecognizer` has been already invoked,
1029 // we want to set the state of the `DelayingGesureRecognizer` to
1030 // `UIGestureRecognizerStateEnded` as soon as possible.
1031 self.delayingRecognizer.state = UIGestureRecognizerStateEnded;
1032 } else {
1033 // If touchesEnded of the `DelayingGesureRecognizer` has not been invoked,
1034 // We will set a flag to notify the `DelayingGesureRecognizer` to set the state to
1035 // `UIGestureRecognizerStateEnded` when touchesEnded is called.
1036 self.delayingRecognizer.shouldEndInNextTouchesEnded = YES;
1037 }
1038 break;
1039 default:
1040 break;
1041 }
1042}
@ FlutterPlatformViewGestureRecognizersBlockingPolicyEager
@ FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded
DelayingGestureRecognizer * delayingRecognizer

◆ embeddedView

- (UIView *) embeddedView

Definition at line 981 of file FlutterPlatformViews.mm.

◆ initWithEmbeddedView:platformViewsController:gestureRecognizersBlockingPolicy:

- (instancetype) initWithEmbeddedView: (UIView*)  embeddedView
platformViewsController: (fml::WeakPtr<flutter::FlutterPlatformViewsController>)  platformViewsController
gestureRecognizersBlockingPolicy: (FlutterPlatformViewGestureRecognizersBlockingPolicy blockingPolicy 

Definition at line 983 of file FlutterPlatformViews.mm.

987 :(UIView*)embeddedView
988 platformViewsController:
990 gestureRecognizersBlockingPolicy:
992 self = [super initWithFrame:embeddedView.frame];
993 if (self) {
994 self.multipleTouchEnabled = YES;
995 _embeddedView = embeddedView;
996 embeddedView.autoresizingMask =
997 (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
998
999 [self addSubview:embeddedView];
1000
1001 ForwardingGestureRecognizer* forwardingRecognizer =
1002 [[ForwardingGestureRecognizer alloc] initWithTarget:self
1003 platformViewsController:platformViewsController];
1004
1005 _delayingRecognizer = [[DelayingGestureRecognizer alloc] initWithTarget:self
1006 action:nil
1007 forwardingRecognizer:forwardingRecognizer];
1008 _blockingPolicy = blockingPolicy;
1009
1010 [self addGestureRecognizer:_delayingRecognizer];
1011 [self addGestureRecognizer:forwardingRecognizer];
1012 }
1013 return self;
1014}
FlutterPlatformViewGestureRecognizersBlockingPolicy
FlutterPlatformViewGestureRecognizersBlockingPolicy blockingPolicy

◆ releaseGesture

- (void) releaseGesture

Definition at line 983 of file FlutterPlatformViews.mm.

1016 {
1017 self.delayingRecognizer.state = UIGestureRecognizerStateFailed;
1018}

◆ touchesBegan:withEvent:

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

Definition at line 983 of file FlutterPlatformViews.mm.

1047 :(NSSet<UITouch*>*)touches withEvent:(UIEvent*)event {
1048}

◆ touchesCancelled:withEvent:

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

Definition at line 983 of file FlutterPlatformViews.mm.

1053 :(NSSet<UITouch*>*)touches withEvent:(UIEvent*)event {
1054}

◆ touchesEnded:withEvent:

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

Definition at line 983 of file FlutterPlatformViews.mm.

1056 :(NSSet*)touches withEvent:(UIEvent*)event {
1057}

◆ touchesMoved:withEvent:

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

Definition at line 983 of file FlutterPlatformViews.mm.

1050 :(NSSet<UITouch*>*)touches withEvent:(UIEvent*)event {
1051}

Property Documentation

◆ blockingPolicy

- (FlutterPlatformViewGestureRecognizersBlockingPolicy) blockingPolicy
readnonatomicassignimplementation

Definition at line 983 of file FlutterPlatformViews.mm.

◆ delayingRecognizer

- (DelayingGestureRecognizer*) delayingRecognizer
readnonatomicassignimplementation

Definition at line 982 of file FlutterPlatformViews.mm.

◆ flutterAccessibilityContainer

- (id) flutterAccessibilityContainer
readwritenonatomicretain

Definition at line 450 of file FlutterPlatformViews_Internal.h.


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