| Flutter iOS Embedder |

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
(id) | - accessibilityContainer

## Properties
id | flutterAccessibilityContainer

## Detailed Description

Definition at line 986 of file FlutterPlatformViews.mm.

## Method Documentation

## ◆ accessibilityContainer

- (id) accessibilityContainer |  |  |

Provided by category FlutterTouchInterceptingView(Tests).

## ◆ blockGesture

- (void) blockGesture |  |  |

Definition at line 1020 of file FlutterPlatformViews.mm.

1020 {
1021 switch (_blockingPolicy) {
1022 case FlutterPlatformViewGestureRecognizersBlockingPolicyEager:
1023 // We block all other gesture recognizers immediately in this policy.
1024 self.delayingRecognizer.state = UIGestureRecognizerStateEnded;
1025 break;
1026 case FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded:
1027 if (self.delayingRecognizer.touchedEndedWithoutBlocking) {
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 }

References FlutterPlatformViewGestureRecognizersBlockingPolicyEager, and FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded.

## ◆ embeddedView

- (UIView*) embeddedView |  |  |

Referenced by flutter::FlutterPlatformViewsController::GetPlatformViewByID, and initWithEmbeddedView:platformViewsController:gestureRecognizersBlockingPolicy:.

## ◆ initWithEmbeddedView:platformViewsController:gestureRecognizersBlockingPolicy:

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

Definition at line 987 of file FlutterPlatformViews.mm.

987 :(UIView*)embeddedView
988 platformViewsController:
989 (fml::WeakPtr<flutter::FlutterPlatformViewsController>)platformViewsController
990 gestureRecognizersBlockingPolicy:
991 (FlutterPlatformViewGestureRecognizersBlockingPolicy)blockingPolicy {
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 }

References embeddedView, and DelayingGestureRecognizer::forwardingRecognizer.

## ◆ releaseGesture

- (void) releaseGesture |  |  |

Definition at line 1016 of file FlutterPlatformViews.mm.

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

## Property Documentation

## ◆ flutterAccessibilityContainer

- (id) flutterAccessibilityContainer
| read write nonatomic retain

Definition at line 450 of file FlutterPlatformViews_Internal.h.

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

- shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm
- shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h

FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded
@ FlutterPlatformViewGestureRecognizersBlockingPolicyWaitUntilTouchesEnded
Definition: FlutterPlugin.h:269
ForwardingGestureRecognizer
Definition: FlutterPlatformViews.mm:974
FlutterPlatformViewGestureRecognizersBlockingPolicyEager
@ FlutterPlatformViewGestureRecognizersBlockingPolicyEager
Definition: FlutterPlugin.h:261
FlutterPlatformViewGestureRecognizersBlockingPolicy
FlutterPlatformViewGestureRecognizersBlockingPolicy
Definition: FlutterPlugin.h:252
DelayingGestureRecognizer
Definition: FlutterPlatformViews.mm:947
-[FlutterTouchInterceptingView embeddedView]
UIView * embeddedView()