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 #if !TARGET_OS_TV
10
11 #import <Foundation/Foundation.h>
12
13 #import <FBSDKCoreKit/FBSDKBridgeAPIProtocolType.h>
14 #import <FBSDKCoreKit/FBSDKBridgeAPIRequest.h>
15 #import <FBSDKCoreKit/FBSDKBridgeAPIRequestProtocol.h>
16 #import <FBSDKCoreKit/FBSDKURLScheme.h>
17
18 @protocol FBSDKInternalURLOpener;
19 @protocol FBSDKInternalUtility;
20 @protocol FBSDKSettings;
21
22 NS_ASSUME_NONNULL_BEGIN
23
24 /**
25  Internal Type exposed to facilitate transition to Swift.
26  API Subject to change or removal without warning. Do not use.
27
28  @warning INTERNAL - DO NOT USE
29  */
30 NS_SWIFT_NAME(_BridgeAPIRequest)
31 @interface FBSDKBridgeAPIRequest : NSObject <NSCopying, FBSDKBridgeAPIRequest>
32
33 - (instancetype)init NS_UNAVAILABLE;
34 + (instancetype)new NS_UNAVAILABLE;
35 + (nullable instancetype)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType
36                                                    scheme:(FBSDKURLScheme)scheme
37                                                methodName:(nullable NSString *)methodName
38                                                parameters:(nullable NSDictionary<NSString *, id> *)parameters
39                                                  userInfo:(nullable NSDictionary<NSString *, id> *)userInfo;
40
41 @property (nonatomic, readonly, copy) NSString *actionID;
42 @property (nullable, nonatomic, readonly, copy) NSString *methodName;
43 @property (nullable, nonatomic, readonly, copy) NSDictionary<NSString *, id> *parameters;
44 @property (nonatomic, readonly, assign) FBSDKBridgeAPIProtocolType protocolType;
45 @property (nonatomic, readonly, copy) FBSDKURLScheme scheme;
46 @property (nullable, nonatomic, readonly, copy) NSDictionary<NSString *, id> *userInfo;
47
48 - (nullable NSURL *)requestURL:(NSError *_Nullable *)errorRef;
49
50 /**
51  Internal method exposed to facilitate transition to Swift.
52  API Subject to change or removal without warning. Do not use.
53
54  @warning INTERNAL - DO NOT USE
55  */
56 + (void)configureWithInternalURLOpener:(id<FBSDKInternalURLOpener>)internalURLOpener
57                        internalUtility:(id<FBSDKInternalUtility>)internalUtility
58                               settings:(id<FBSDKSettings>)settings
59 NS_SWIFT_NAME(configure(internalURLOpener:internalUtility:settings:));
60
61 @end
62
63 NS_ASSUME_NONNULL_END
64
65 #endif