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 #import <FBSDKCoreKit/FBSDKBridgeAPIRequest.h>
15 #import <FBSDKCoreKit/FBSDKBridgeAPIRequestProtocol.h>
16 #import <FBSDKCoreKit/FBSDKURLScheme.h>
17
18 NS_ASSUME_NONNULL_BEGIN
19
20 /**
21  Internal Type exposed to facilitate transition to Swift.
22  API Subject to change or removal without warning. Do not use.
23
24  @warning INTERNAL - DO NOT USE
25  */
26 NS_SWIFT_NAME(BridgeAPIRequest)
27 @interface FBSDKBridgeAPIRequest : NSObject <NSCopying, FBSDKBridgeAPIRequest>
28
29 - (instancetype)init NS_UNAVAILABLE;
30 + (instancetype)new NS_UNAVAILABLE;
31 + (nullable instancetype)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType
32                                                    scheme:(FBSDKURLScheme)scheme
33                                                methodName:(nullable NSString *)methodName
34                                                parameters:(nullable NSDictionary<NSString *, id> *)parameters
35                                                  userInfo:(nullable NSDictionary<NSString *, id> *)userInfo;
36
37 @property (nonatomic, readonly, copy) NSString *actionID;
38 @property (nullable, nonatomic, readonly, copy) NSString *methodName;
39 @property (nullable, nonatomic, readonly, copy) NSDictionary<NSString *, id> *parameters;
40 @property (nonatomic, readonly, assign) FBSDKBridgeAPIProtocolType protocolType;
41 @property (nonatomic, readonly, copy) FBSDKURLScheme scheme;
42 @property (nullable, nonatomic, readonly, copy) NSDictionary<NSString *, id> *userInfo;
43
44 - (nullable NSURL *)requestURL:(NSError *_Nullable *)errorRef;
45
46 @end
47
48 NS_ASSUME_NONNULL_END
49
50 #endif