File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 2222
2323+ (BOOL )application : (nonnull UIApplication *)application
2424 continueUserActivity : (nonnull NSUserActivity *)userActivity
25- restorationHandler : (nonnull void (^)(NSArray *__nullable))restorationHandler;
25+ restorationHandler :
26+ #if __has_include (<UIKitCore/UIUserActivity.h>) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 12000 ) /* __IPHONE_12_0 */
27+ (nonnull void (^)(NSArray <id <UIUserActivityRestoring>> *_Nullable))restorationHandler;
28+ #else
29+ (nonnull void (^)(NSArray *_Nullable))restorationHandler;
30+ #endif
2631
2732@end
Original file line number Diff line number Diff line change @@ -67,8 +67,12 @@ + (BOOL)application:(UIApplication *)application
6767
6868+ (BOOL )application : (UIApplication *)application
6969continueUserActivity : (NSUserActivity *)userActivity
70- restorationHandler : (void (^)(NSArray * __nullable))restorationHandler
71- {
70+ restorationHandler :
71+ #if __has_include (<UIKitCore/UIUserActivity.h>) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 12000 ) /* __IPHONE_12_0 */
72+ (nonnull void (^)(NSArray <id <UIUserActivityRestoring>> *_Nullable))restorationHandler {
73+ #else
74+ (nonnull void (^)(NSArray *_Nullable))restorationHandler {
75+ #endif
7276 if ([userActivity.activityType isEqualToString: NSUserActivityTypeBrowsingWeb ]) {
7377 NSDictionary *payload = @{@" url" : userActivity.webpageURL .absoluteString };
7478 [[NSNotificationCenter defaultCenter ] postNotificationName: kOpenURLNotification
You can’t perform that action at this time.
0 commit comments