FBSDKBridgeAPIRequest.h 2.4 KB

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