5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_HEADERS_FLUTTERPLUGIN_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_HEADERS_FLUTTERPLUGIN_H_
8 #import <UIKit/UIKit.h>
9 #import <UserNotifications/UNUserNotificationCenter.h>
19 @protocol FlutterPluginRegistry;
33 - (BOOL)application:(UIApplication*)application
34 didFinishLaunchingWithOptions:(NSDictionary*)launchOptions;
41 - (BOOL)application:(UIApplication*)application
42 willFinishLaunchingWithOptions:(NSDictionary*)launchOptions;
47 - (void)applicationDidBecomeActive:(UIApplication*)application;
52 - (void)applicationWillResignActive:(UIApplication*)application;
57 - (void)applicationDidEnterBackground:(UIApplication*)application;
62 - (void)applicationWillEnterForeground:(UIApplication*)application;
67 - (void)applicationWillTerminate:(UIApplication*)application;
72 - (void)application:(UIApplication*)application
73 didRegisterUserNotificationSettings:(UIUserNotificationSettings*)notificationSettings
75 "See -[UIApplicationDelegate application:didRegisterUserNotificationSettings:] deprecation",
81 - (void)application:(UIApplication*)application
82 didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken;
87 - (void)application:(UIApplication*)application
88 didFailToRegisterForRemoteNotificationsWithError:(NSError*)error;
95 - (BOOL)application:(UIApplication*)application
96 didReceiveRemoteNotification:(NSDictionary*)userInfo
97 fetchCompletionHandler:(
void (^)(UIBackgroundFetchResult result))completionHandler;
102 - (void)application:(UIApplication*)application
103 didReceiveLocalNotification:(UILocalNotification*)notification
105 "See -[UIApplicationDelegate application:didReceiveLocalNotification:] deprecation",
113 - (BOOL)application:(UIApplication*)application
115 options:(NSDictionary<UIApplicationOpenURLOptionsKey,
id>*)options;
122 - (BOOL)application:(UIApplication*)application handleOpenURL:(NSURL*)url;
129 - (BOOL)application:(UIApplication*)application
131 sourceApplication:(NSString*)sourceApplication
132 annotation:(
id)annotation;
139 - (BOOL)application:(UIApplication*)application
140 performActionForShortcutItem:(UIApplicationShortcutItem*)shortcutItem
141 completionHandler:(
void (^)(BOOL succeeded))completionHandler
142 API_AVAILABLE(ios(9.0));
149 - (BOOL)application:(UIApplication*)application
150 handleEventsForBackgroundURLSession:(nonnull NSString*)identifier
151 completionHandler:(nonnull
void (^)(
void))completionHandler;
158 - (BOOL)application:(UIApplication*)application
159 performFetchWithCompletionHandler:(
void (^)(UIBackgroundFetchResult result))completionHandler;
166 - (BOOL)application:(UIApplication*)application
167 continueUserActivity:(NSUserActivity*)userActivity
168 restorationHandler:(
void (^)(NSArray*))restorationHandler;
310 withId:(NSString*)factoryId;
325 withId:(NSString*)factoryId
326 gestureRecognizersBlockingPolicy:
341 - (void)publish:(NSObject*)value;
350 - (void)addMethodCallDelegate:(NSObject<
FlutterPlugin>*)delegate
358 - (void)addApplicationDelegate:(NSObject<
FlutterPlugin>*)delegate
359 NS_EXTENSION_UNAVAILABLE_IOS("Disallowed in plugins used in app extensions");
368 - (NSString*)lookupKeyForAsset:(NSString*)asset;
379 - (NSString*)lookupKeyForAsset:(NSString*)asset fromPackage:(NSString*)package;
402 @protocol FlutterPluginRegistry <NSObject>
415 - (BOOL)hasPlugin:(NSString*)pluginKey;
425 - (nullable NSObject*)valuePublishedByPlugin:(NSString*)pluginKey;
448 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_HEADERS_FLUTTERPLUGIN_H_