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 #include "flutter/shell/platform/darwin/common/framework/Headers/FlutterChannels.h" 10 #include "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_ 30