Flutter Engine
The Flutter Engine
FlutterPlatformPlugin.h
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#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMPLUGIN_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMPLUGIN_H_
7
8#include "flutter/fml/platform/darwin/weak_nsobject.h"
9#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterChannels.h"
10#import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterEngine.h"
11
12@interface FlutterPlatformPlugin : NSObject
13- (instancetype)init NS_UNAVAILABLE;
14+ (instancetype)new NS_UNAVAILABLE;
15- (instancetype)initWithEngine:(fml::WeakNSObject<FlutterEngine>)engine NS_DESIGNATED_INITIALIZER;
16- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result;
17
18@end
19
20namespace flutter {
21
22extern const char* const kOrientationUpdateNotificationName;
23extern const char* const kOrientationUpdateNotificationKey;
24extern const char* const kOverlayStyleUpdateNotificationName;
25extern const char* const kOverlayStyleUpdateNotificationKey;
26
27} // namespace flutter
28
29#endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMPLUGIN_H_
void(^ FlutterResult)(id _Nullable result)
instancetype init NS_UNAVAILABLE
static bool init()
const char *const kOrientationUpdateNotificationKey
const char *const kOverlayStyleUpdateNotificationName
const char *const kOverlayStyleUpdateNotificationKey
const char *const kOrientationUpdateNotificationName
Definition: ascii_trie.cc:9