lpw
2023-06-03 e0ec4235cc7b8d05ec1aaa414ec2d2cac798d74e
commit | author | age
2e29a3 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 #if !TARGET_OS_TV
10
11 #import <Foundation/Foundation.h>
12 #import <UIKit/UIViewController.h>
13
14 #import <FBSDKCoreKit/FBSDKBridgeAPIResponse.h>
15 #import <FBSDKCoreKit/FBSDKConstants.h>
16
17 @protocol FBSDKBridgeAPIRequest;
18 @protocol FBSDKURLOpening;
19
20 NS_ASSUME_NONNULL_BEGIN
21
22 /**
23  Internal Type exposed to facilitate transition to Swift.
24  API Subject to change or removal without warning. Do not use.
25
26  @warning INTERNAL - DO NOT USE
27  */
28 NS_SWIFT_NAME(BridgeAPIRequestOpening)
e0ec42 29 @protocol FBSDKBridgeAPIRequestOpening
2e29a3 30
L 31 - (void)openBridgeAPIRequest:(NSObject<FBSDKBridgeAPIRequest> *)request
32      useSafariViewController:(BOOL)useSafariViewController
33           fromViewController:(nullable UIViewController *)fromViewController
34              completionBlock:(FBSDKBridgeAPIResponseBlock)completionBlock;
35
36 // UNCRUSTIFY_FORMAT_OFF
37 - (void)openURLWithSafariViewController:(NSURL *)url
38                                  sender:(nullable id<FBSDKURLOpening>)sender
39                      fromViewController:(nullable UIViewController *)fromViewController
40                                 handler:(FBSDKSuccessBlock)handler
41 NS_SWIFT_NAME(openURLWithSafariViewController(url:sender:from:handler:));
42 // UNCRUSTIFY_FORMAT_ON
43
44 - (void)openURL:(NSURL *)url
45          sender:(nullable id<FBSDKURLOpening>)sender
46         handler:(FBSDKSuccessBlock)handler;
47 @end
48
49 NS_ASSUME_NONNULL_END
50
51 #endif