mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Revert "Added application callback" (flutter/engine#5377)
* Revert "Added application callback (#5369)" This reverts commit c126c9ecdf6e4fb9fef9831d23882d89dde9b5b1.
This commit is contained in:
parent
0f97c842e4
commit
2a96319ea7
@ -146,15 +146,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*/
|
||||
- (BOOL)application:(UIApplication*)application
|
||||
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
|
||||
|
||||
/**
|
||||
|
||||
@ -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.
|
||||
- (NSObject<FlutterBinaryMessenger>*)binaryMessenger {
|
||||
UIViewController* rootViewController = _window.rootViewController;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user