Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
8#import "flutter/shell/platform/darwin/macos/framework/Source/TestFlutterPlatformView.h"
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
21- (NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable id)args {
22 return [[TestFlutterPlatformView alloc] initWithFrame:CGRectZero arguments:args];
23}
24
25- (NSObject<FlutterMessageCodec>*)createArgsCodec {
27}
28
29@end
NSObject< FlutterMessageCodec > * createArgsCodec()
id args
Arguments passed via the params value in the create method call.
instancetype initWithFrame