Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Instance Methods | List of all members
MockFlutterPlatformFactory Class Reference
Inheritance diagram for MockFlutterPlatformFactory:
<FlutterPlatformViewFactory>

Instance Methods

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

Detailed Description

Definition at line 55 of file accessibility_bridge_test.mm.

Method Documentation

◆ 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 41 of file accessibility_bridge_test.mm.

59 :(CGRect)frame
60 viewIdentifier:(int64_t)viewId
61 arguments:(id _Nullable)args {
62 return [[MockFlutterPlatformView alloc] init];
63}
double frame
Definition examples.cpp:31
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
init(device_serial, adb_binary)
Definition _adb_path.py:12
const uintptr_t id

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