lpw
2022-02-15 2e29a3a585524a054640bb6e7bdf26fe77ba1f17
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
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 - (nullable NSURL *)requestURLWithActionID:(NSString *)actionID
31                                     scheme:(NSString *)scheme
32                                 methodName:(NSString *)methodName
33                                 parameters:(NSDictionary<NSString *, id> *)parameters
34                                      error:(NSError *_Nullable *)errorRef;
35 - (nullable NSDictionary<NSString *, id> *)responseParametersForActionID:(NSString *)actionID
36                                                          queryParameters:(NSDictionary<NSString *, id> *)queryParameters
37                                                                cancelled:(nullable BOOL *)cancelledRef
38                                                                    error:(NSError *_Nullable *)errorRef;
39
40 @end
41
42 NS_ASSUME_NONNULL_END
43
44 #endif