lpw
2024-06-24 14dac3416fa64cec3ca6523835297bf7a4d7d9bd
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
15 NS_ASSUME_NONNULL_BEGIN
16
17 FOUNDATION_EXPORT NSString *const FBSDKBridgeAPIAppIDKey;
18 FOUNDATION_EXPORT NSString *const FBSDKBridgeAPISchemeSuffixKey;
19 FOUNDATION_EXPORT NSString *const FBSDKBridgeAPIVersionKey;
20
21 /**
22  Internal Type exposed to facilitate transition to Swift.
23  API Subject to change or removal without warning. Do not use.
24
25  @warning INTERNAL - DO NOT USE
26  */
27 NS_SWIFT_NAME(BridgeAPIProtocol)
28 @protocol FBSDKBridgeAPIProtocol <NSObject>
29
30 // UNCRUSTIFY_FORMAT_OFF
31 - (nullable NSURL *)requestURLWithActionID:(NSString *)actionID
32                                     scheme:(NSString *)scheme
33                                 methodName:(NSString *)methodName
34                                 parameters:(NSDictionary<NSString *, id> *)parameters
35                                      error:(NSError *_Nullable *)errorRef
36 NS_SWIFT_NAME(requestURL(actionID:scheme:methodName:parameters:));
37 // UNCRUSTIFY_FORMAT_ON
38
39 // UNCRUSTIFY_FORMAT_OFF
40 - (nullable NSDictionary<NSString *, id> *)responseParametersForActionID:(NSString *)actionID
41                                                          queryParameters:(NSDictionary<NSString *, id> *)queryParameters
42                                                                cancelled:(nullable BOOL *)cancelledRef
43                                                                    error:(NSError *_Nullable *)errorRef
44 NS_SWIFT_NAME(responseParameters(actionID:queryParameters:cancelled:));
45 // UNCRUSTIFY_FORMAT_ON
46
47 @end
48
49 NS_ASSUME_NONNULL_END
50
51 #endif