FBSDKBridgeAPIProtocol.h 1.8 KB

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