mirror of
https://github.com/encounter/engine.git
synced 2026-07-10 03:18:43 -07:00
142cf001bc
This reverts commit 5a8da65592.
42 lines
1.3 KiB
Objective-C
42 lines
1.3 KiB
Objective-C
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTER_VIEW_H_
|
|
#define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTER_VIEW_H_
|
|
|
|
#include <UIKit/UIKit.h>
|
|
|
|
#include <memory>
|
|
|
|
#import "FlutterPlatformViews_Internal.h"
|
|
|
|
#include "flutter/fml/memory/weak_ptr.h"
|
|
#include "flutter/shell/common/shell.h"
|
|
#include "flutter/shell/platform/darwin/ios/ios_surface.h"
|
|
|
|
@protocol FlutterViewEngineDelegate <NSObject>
|
|
|
|
- (flutter::Rasterizer::Screenshot)takeScreenshot:(flutter::Rasterizer::ScreenshotType)type
|
|
asBase64Encoded:(BOOL)base64Encode;
|
|
|
|
- (flutter::FlutterPlatformViewsController*)platformViewsController;
|
|
|
|
@end
|
|
|
|
@interface FlutterView : UIView
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
+ (instancetype)new NS_UNAVAILABLE;
|
|
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
|
|
- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
|
|
|
|
- (instancetype)initWithDelegate:(id<FlutterViewEngineDelegate>)delegate
|
|
opaque:(BOOL)opaque NS_DESIGNATED_INITIALIZER;
|
|
- (std::unique_ptr<flutter::IOSSurface>)createSurface:
|
|
(std::shared_ptr<flutter::IOSGLContext>)context;
|
|
|
|
@end
|
|
|
|
#endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTER_VIEW_H_
|