| Flutter macOS Embedder |

Instance Methods | List of all members
<FlutterPlatformViewFactory> Protocol Reference

`#import <FlutterPlatformViews.h>`

Inheritance diagram for <FlutterPlatformViewFactory>:

## Instance Methods
(nonnull NSView *) | - createWithViewIdentifier:arguments:
(nullable NSObject< FlutterMessageCodec > *) | - createArgsCodec

## Detailed Description

Definition at line 13 of file FlutterPlatformViews.h.

## Method Documentation

## ◆ createArgsCodec

- (nullable NSObject<FlutterMessageCodec>*) createArgsCodec |  |  |
| optional

Returns the `FlutterMessageCodec` for decoding the args parameter of `createWithFrame`.

Only implement this if `createWithFrame` needs an arguments parameter.

## ◆ createWithViewIdentifier:arguments:

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

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

  viewId | A unique identifier for this view.
  args | Parameters 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`.

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

- shell/platform/darwin/macos/framework/Headers/FlutterPlatformViews.h