lpw
2024-04-15 97fc0a41111c5a929ee8be9d6511775697ffa760
commit | author | age
e0ec42 1 /*
L 2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8
9 #import <TargetConditionals.h>
10
11 #if !TARGET_OS_TV
12
13 NS_ASSUME_NONNULL_BEGIN
14
15 @protocol FBSDKURLOpening;
16
17 /**
18  Internal Type exposed to facilitate transition to Swift.
19  API Subject to change or removal without warning. Do not use.
20
21  @warning INTERNAL - DO NOT USE
22  */
23 NS_SWIFT_NAME(URLOpener)
24 @protocol FBSDKURLOpener
25
26 - (void)openURL:(NSURL *)url
27          sender:(nullable id<FBSDKURLOpening>)sender
28         handler:(FBSDKSuccessBlock)handler;
29
30 // UNCRUSTIFY_FORMAT_OFF
31 - (void)openURLWithSafariViewController:(NSURL *)url
32                                  sender:(nullable id<FBSDKURLOpening>)sender
33                      fromViewController:(nullable UIViewController *)fromViewController
34                                 handler:(FBSDKSuccessBlock)handler
35 NS_SWIFT_NAME(openURLWithSafariViewController(url:sender:from:handler:));
36 // UNCRUSTIFY_FORMAT_ON
37
38 @end
39
40 NS_ASSUME_NONNULL_END
41
42 #endif