lpw
2024-06-28 2a6e182ea4428bff2e16f033c28850f3a02a93a9
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
13 #import <FBSDKCoreKit/FBSDKBridgeAPIProtocolType.h>
14 #import <FBSDKCoreKit/FBSDKBridgeAPIRequest.h>
15 #import <FBSDKCoreKit/FBSDKBridgeAPIRequestProtocol.h>
16 #import <FBSDKCoreKit/FBSDKURLScheme.h>
17
e0ec42 18 @protocol FBSDKInternalURLOpener;
L 19 @protocol FBSDKInternalUtility;
20 @protocol FBSDKSettings;
21
2e29a3 22 NS_ASSUME_NONNULL_BEGIN
L 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  */
e0ec42 30 NS_SWIFT_NAME(_BridgeAPIRequest)
2e29a3 31 @interface FBSDKBridgeAPIRequest : NSObject <NSCopying, FBSDKBridgeAPIRequest>
L 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
e0ec42 50 /**
L 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
2e29a3 61 @end
L 62
63 NS_ASSUME_NONNULL_END
64
65 #endif