Flutter Engine
<FlutterPlatformViewFactory > Protocol Reference

#import <FlutterPlatformViews.h>

Inheritance diagram for <FlutterPlatformViewFactory >:

Instance Methods

(NSObject< FlutterPlatformView > *) - createWithFrame:viewIdentifier:arguments:
 
(NSObject< FlutterMessageCodec > *) - createArgsCodec
 

Detailed Description

Definition at line 26 of file FlutterPlatformViews.h.

Method Documentation

◆ createArgsCodec()

- (NSObject<FlutterMessageCodec>* FlutterPlatformViewFactory) createArgsCodec
optional

Returns the FlutterMessageCodec for decoding the args parameter of createWithFrame.

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

◆ createWithFrame:viewIdentifier:arguments:()

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

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.

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