未验证 提交 193d873c 编写于 作者: B Brandon Parrish 提交者: GitHub

Revert "Added application callback" (#5377)

* Revert "Added application callback (#5369)"

This reverts commit a1a54ad1.
上级 67f82eed
...@@ -146,15 +146,6 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -146,15 +146,6 @@ NS_ASSUME_NONNULL_BEGIN
*/ */
- (BOOL)application:(UIApplication*)application - (BOOL)application:(UIApplication*)application
performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler; performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
/**
Called if this plugin has been registered for `UIApplicationDelegate` callbacks.
- Returns: `YES` if this plugin handles the request.
*/
- (BOOL)application:(UIApplication*)application
continueUserActivity:(NSUserActivity*)userActivity
restorationHandler:(void (^)(NSArray*))restorationHandler;
@end @end
/** /**
......
...@@ -235,20 +235,6 @@ ...@@ -235,20 +235,6 @@
} }
} }
- (void)application:(UIApplication*)application
continueUserActivity:(NSUserActivity*)userActivity
restorationHandler:(void (^)(NSArray*))restorationHandler {
for (id<FlutterPlugin> plugin in _pluginDelegates) {
if ([plugin respondsToSelector:_cmd]) {
if ([plugin application:application
continueUserActivity:userActivty
restorationHandler:restorationHandler]) {
return;
}
}
}
}
// TODO(xster): move when doing https://github.com/flutter/flutter/issues/3671. // TODO(xster): move when doing https://github.com/flutter/flutter/issues/3671.
- (NSObject<FlutterBinaryMessenger>*)binaryMessenger { - (NSObject<FlutterBinaryMessenger>*)binaryMessenger {
UIViewController* rootViewController = _window.rootViewController; UIViewController* rootViewController = _window.rootViewController;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册