Flutter macOS Embedder
TestFlutterPlatformView.mm
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #import <Cocoa/Cocoa.h>
6 #import <Foundation/Foundation.h>
7 
9 
10 @implementation TestFlutterPlatformView
11 
12 - (instancetype)initWithFrame:(CGRect)frame arguments:(nullable NSDictionary*)args {
13  self = [super initWithFrame:frame];
14  _args = args;
15  return self;
16 }
17 
18 @end
19 
20 @implementation TestFlutterPlatformViewFactory
21 - (NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable id)args {
22  return [[TestFlutterPlatformView alloc] initWithFrame:CGRectZero arguments:args];
23 }
24 
27 }
28 
29 @end
TestFlutterPlatformViewFactory
Definition: TestFlutterPlatformView.h:19
TestFlutterPlatformView
Definition: TestFlutterPlatformView.h:12
TestFlutterPlatformView::args
id args
Arguments passed via the params value in the create method call.
Definition: TestFlutterPlatformView.h:15
TestFlutterPlatformView.h
FlutterStandardMessageCodec
Definition: FlutterCodecs.h:209
-[FlutterPlatformViewFactory-p createArgsCodec]
nullable NSObject< FlutterMessageCodec > * createArgsCodec()
FlutterMessageCodec-p
Definition: FlutterCodecs.h:18
+[FlutterMessageCodec-p sharedInstance]
instancetype sharedInstance()