| Flutter iOS Embedder |

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 SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMPLUGIN_H_
6 #define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMPLUGIN_H_
7
8 #include "flutter/fml/memory/weak_ptr.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::WeakPtr<FlutterEngine>)engine NS_DESIGNATED_INITIALIZER;
16 - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result;
17
18 @end
19
20 namespace flutter {
21
22 extern const char* const kOrientationUpdateNotificationName;
23 extern const char* const kOrientationUpdateNotificationKey;
24 extern const char* const kOverlayStyleUpdateNotificationName;
25 extern const char* const kOverlayStyleUpdateNotificationKey;
26
27 } // namespace flutter
28
29 #endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMPLUGIN_H_
FlutterEngine
Definition: FlutterEngine.h:59
FlutterEngine.h
flutter::kOrientationUpdateNotificationKey
const char *const kOrientationUpdateNotificationKey
Definition: FlutterPlatformPlugin.mm:34
FlutterChannels.h
flutter::kOrientationUpdateNotificationName
const char *const kOrientationUpdateNotificationName
Definition: FlutterPlatformPlugin.mm:32
flutter::kOverlayStyleUpdateNotificationKey
const char *const kOverlayStyleUpdateNotificationKey
Definition: FlutterPlatformPlugin.mm:38
FlutterMethodCall
Definition: FlutterCodecs.h:220
flutter
Definition: accessibility_bridge.h:28
flutter::kOverlayStyleUpdateNotificationName
const char *const kOverlayStyleUpdateNotificationName
Definition: FlutterPlatformPlugin.mm:36
FlutterResult
void(^ FlutterResult)(id _Nullable result)
Definition: FlutterChannels.h:196
FlutterPlatformPlugin
Definition: FlutterPlatformPlugin.h:12
NS_UNAVAILABLE
instancetype init NS_UNAVAILABLE
Definition: FlutterTextInputPlugin.h:161