Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | List of all members
TextPlatformViewFactory Class Reference

#include <TextPlatformView.h>

Inheritance diagram for TextPlatformViewFactory:
<FlutterPlatformViewFactory>

Instance Methods

(instancetype) - initWithMessenger:
 
(NSObject< FlutterPlatformView > *) - createWithFrame:viewIdentifier:arguments: [implementation]
 
(NSObject< FlutterMessageCodec > *) - createArgsCodec [implementation]
 
- Instance Methods inherited from <FlutterPlatformViewFactory>
(nonnull NSView *) - createWithViewIdentifier:arguments:
 

Detailed Description

Definition at line 22 of file TextPlatformView.h.

Method Documentation

◆ createArgsCodec

- (NSObject< FlutterMessageCodec > *) createArgsCodec
implementation

Returns the FlutterMessageCodec for decoding the args parameter of createWithFrame.

Only needs to be implemented if createWithFrame needs an arguments parameter.

Reimplemented from <FlutterPlatformViewFactory>.

Definition at line 17 of file TextPlatformView.m.

◆ createWithFrame:viewIdentifier:arguments:

- (NSObject< FlutterPlatformView > *) createWithFrame: (CGRect)  frame
viewIdentifier: (int64_t)  viewId
arguments: (id _Nullable)  args 
implementation

Create a FlutterPlatformView.

Implemented by iOS code that expose a UIView for embedding in a Flutter app.

The implementation of this method should create a new UIView and return it.

Parameters
frameThe rectangle for the newly created UIView measured in points.
viewIdA unique identifier for this UIView.
argsParameters for creating the UIView sent from the Dart side of the Flutter app. If createArgsCodec is not implemented, or if no creation arguments were sent from the ␐Dart code, this will be null. Otherwise this will be the value sent from the Dart code as decoded by createArgsCodec.

Reimplemented from <FlutterPlatformViewFactory>.

Definition at line 17 of file TextPlatformView.m.

47 :(CGRect)frame
48 viewIdentifier:(int64_t)viewId
49 arguments:(id _Nullable)args {
50 TextPlatformView* textPlatformView = [[TextPlatformView alloc] initWithFrame:frame
51 viewIdentifier:viewId
52 arguments:args
53 binaryMessenger:_messenger];
54 return textPlatformView;
55}
double frame
Definition examples.cpp:31
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
instancetype initWithFrame
const uintptr_t id

◆ initWithMessenger:

- (instancetype) initWithMessenger: (NSObject<FlutterBinaryMessenger>*)  messenger
Initial value:
{
NSObject<FlutterBinaryMessenger>* _messenger

Definition at line 17 of file TextPlatformView.m.

39 :(NSObject<FlutterBinaryMessenger>*)messenger {
40 self = [super init];
41 if (self) {
42 _messenger = messenger;
43 }
44 return self;
45}

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