16@property(weak, nonatomic)
23- (void)touchesBegan:(NSSet<UITouch*>*)touches withEvent:(
UIEvent*)event {
24 [
self.testTapGestureRecognizerDelegate gestureTouchesBegan];
25 [
super touchesBegan:touches withEvent:event];
28- (void)touchesEnded:(NSSet<UITouch*>*)touches withEvent:(
UIEvent*)event {
29 [
self.testTapGestureRecognizerDelegate gestureTouchesEnded];
30 [
super touchesEnded:touches withEvent:event];
36 NSObject<FlutterBinaryMessenger>* _messenger;
42 _messenger = messenger;
48 viewIdentifier:(int64_t)viewId
49 arguments:(
id _Nullable)args {
53 binaryMessenger:_messenger];
54 return textPlatformView;
68 UIView* _containerView;
75 viewIdentifier:(int64_t)viewId
76 arguments:(
id _Nullable)args
79 _containerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 250, 100)];
80 _containerView.backgroundColor = UIColor.lightGrayColor;
81 _containerView.clipsToBounds = YES;
82 _containerView.accessibilityIdentifier =
@"platform_view";
84 _textView = [[UITextView alloc] initWithFrame:CGRectMake(50.0, 50.0, 250, 100)];
85 _textView.backgroundColor = UIColor.lightGrayColor;
87 [_textView setFont:[UIFont systemFontOfSize:52]];
90 (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
91 [_containerView addSubview:_textView];
96 [_textView addGestureRecognizer:gestureRecognizer];
112 return _containerView;
115- (void)platformViewTapped {
117 [_textView.accessibilityLabel stringByAppendingString:@"-platformViewTapped"];
120- (void)gestureTouchesBegan {
122 [_textView.accessibilityLabel stringByAppendingString:@"-gestureTouchesBegan"];
125- (void)gestureTouchesEnded {
127 [_textView.accessibilityLabel stringByAppendingString:@"-gestureTouchesEnded"];
FlutterMethodChannel * _channel
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
instancetype sharedInstance()
NSObject< TestGestureRecognizerDelegate > * testTapGestureRecognizerDelegate
instancetype initWithFrame
void gestureTouchesEnded()
void gestureTouchesBegan()