Flutter Engine
TextPlatformView Class Reference

#import <TextPlatformView.h>

Inheritance diagram for TextPlatformView:

Instance Methods

(instancetype) - initWithFrame:viewIdentifier:arguments:binaryMessenger:
 
(UIView *) - view
 

Detailed Description

Definition at line 9 of file TextPlatformView.h.

Method Documentation

◆ initWithFrame:viewIdentifier:arguments:binaryMessenger:()

- (instancetype) initWithFrame: (CGRect)  frame
viewIdentifier: (int64_t)  viewId
arguments: (id _Nullable)  args
binaryMessenger: (NSObject<FlutterBinaryMessenger>*)  messenger 

Definition at line 72 of file TextPlatformView.m.

References args, and TestTapGestureRecognizer::testTapGestureRecognizerDelegate.

72  :(CGRect)frame
73  viewIdentifier:(int64_t)viewId
74  arguments:(id _Nullable)args
75  binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger {
76  if ([super init]) {
77  _textView = [[UITextView alloc] initWithFrame:CGRectMake(50.0, 50.0, 250.0, 100.0)];
78  _textView.textColor = UIColor.blueColor;
79  _textView.backgroundColor = UIColor.lightGrayColor;
80  [_textView setFont:[UIFont systemFontOfSize:52]];
81  _textView.text = args;
82  _textView.accessibilityIdentifier = @"platform_view";
83 
84  TestTapGestureRecognizer* gestureRecognizer =
85  [[TestTapGestureRecognizer alloc] initWithTarget:self action:@selector(platformViewTapped)];
86 
87  [_textView addGestureRecognizer:gestureRecognizer];
88  gestureRecognizer.testTapGestureRecognizerDelegate = self;
89  _textView.accessibilityLabel = @"";
90  }
91  return self;
92 }
G_BEGIN_DECLS FlValue * args
NSObject< TestGestureRecognizerDelegate > * testTapGestureRecognizerDelegate

◆ view()

- (UIView *) view

Definition at line 94 of file TextPlatformView.m.

94  {
95  return _textView;
96 }

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