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

#include <TestFlutterPlatformView.h>

Inheritance diagram for TestFlutterPlatformViewFactory:
<FlutterPlatformViewFactory>

Instance Methods

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

Detailed Description

Definition at line 19 of file TestFlutterPlatformView.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 1 of file TestFlutterPlatformView.mm.

◆ createWithViewIdentifier:arguments:

- (NSView *) createWithViewIdentifier: (int64_t)  viewId
arguments: (nullable id args 
implementation

Create a Platform View which is an NSView.

A MacOS plugin should implement this method and return an NSView, which can be embedded in a Flutter App.

The implementation of this method should create a new NSView.

Parameters
viewIdA unique identifier for this view.
argsParameters for creating the view 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 1 of file TestFlutterPlatformView.mm.

21 :(int64_t)viewId arguments:(nullable id)args {
22 return [[TestFlutterPlatformView alloc] initWithFrame:CGRectZero arguments:args];
23}
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
instancetype initWithFrame
const uintptr_t id

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