Flutter macOS Embedder
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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
id args
Arguments passed via the params value in the create method call.
instancetype sharedInstance()
nullable NSObject< FlutterMessageCodec > * createArgsCodec()