| 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 FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMPLUGIN_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMPLUGIN_H_
7
8 #import "flutter/shell/platform/darwin/common/framework/Headers/FlutterChannels.h"
9 #import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterEngine.h"
10
11 @interface FlutterPlatformPlugin : NSObject
12 - (instancetype)init NS_UNAVAILABLE;
13 + (instancetype)new NS_UNAVAILABLE;
14 - (instancetype)initWithEngine:(FlutterEngine*)engine NS_DESIGNATED_INITIALIZER;
15 - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result;
16
17 - (void)showShareViewController:(NSString*)content;
18 - (void)searchWeb:(NSString*)searchTerm;
19 - (void)showLookUpViewController:(NSString*)term;
20 @end
21
22 namespace flutter {
23
24 extern const char* const kOrientationUpdateNotificationName;
25 extern const char* const kOrientationUpdateNotificationKey;
26 extern const char* const kOverlayStyleUpdateNotificationName;
27 extern const char* const kOverlayStyleUpdateNotificationKey;
28
29 } // namespace flutter
30
31 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMPLUGIN_H_
FlutterChannels.h
FlutterResult
void(^ FlutterResult)(id _Nullable result)
Definition: FlutterChannels.h:194
FlutterEngine.h
NS_UNAVAILABLE
instancetype init NS_UNAVAILABLE
Definition: FlutterTextInputPlugin.h:169
FlutterEngine
Definition: FlutterEngine.h:61
FlutterMethodCall
Definition: FlutterCodecs.h:221
FlutterPlatformPlugin
Definition: FlutterPlatformPlugin.h:12
flutter
Definition: accessibility_bridge.h:26
flutter::kOrientationUpdateNotificationKey
const char *const kOrientationUpdateNotificationKey
Definition: FlutterPlatformPlugin.mm:35
flutter::kOverlayStyleUpdateNotificationName
const char *const kOverlayStyleUpdateNotificationName
Definition: FlutterPlatformPlugin.mm:37
flutter::kOverlayStyleUpdateNotificationKey
const char *const kOverlayStyleUpdateNotificationKey
Definition: FlutterPlatformPlugin.mm:39
flutter::kOrientationUpdateNotificationName
const char *const kOrientationUpdateNotificationName
Definition: FlutterPlatformPlugin.mm:33