FBSDKBridgeAPIRequestOpening.h 1.5 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 <UIKit/UIViewController.h>
  11. #import <FBSDKCoreKit/FBSDKBridgeAPIResponse.h>
  12. #import <FBSDKCoreKit/FBSDKConstants.h>
  13. @protocol FBSDKBridgeAPIRequest;
  14. @protocol FBSDKURLOpening;
  15. NS_ASSUME_NONNULL_BEGIN
  16. /**
  17. Internal Type exposed to facilitate transition to Swift.
  18. API Subject to change or removal without warning. Do not use.
  19. @warning INTERNAL - DO NOT USE
  20. */
  21. NS_SWIFT_NAME(BridgeAPIRequestOpening)
  22. @protocol FBSDKBridgeAPIRequestOpening
  23. - (void)openBridgeAPIRequest:(NSObject<FBSDKBridgeAPIRequest> *)request
  24. useSafariViewController:(BOOL)useSafariViewController
  25. fromViewController:(nullable UIViewController *)fromViewController
  26. completionBlock:(FBSDKBridgeAPIResponseBlock)completionBlock;
  27. // UNCRUSTIFY_FORMAT_OFF
  28. - (void)openURLWithSafariViewController:(NSURL *)url
  29. sender:(nullable id<FBSDKURLOpening>)sender
  30. fromViewController:(nullable UIViewController *)fromViewController
  31. handler:(FBSDKSuccessBlock)handler
  32. NS_SWIFT_NAME(openURLWithSafariViewController(url:sender:from:handler:));
  33. // UNCRUSTIFY_FORMAT_ON
  34. - (void)openURL:(NSURL *)url
  35. sender:(nullable id<FBSDKURLOpening>)sender
  36. handler:(FBSDKSuccessBlock)handler;
  37. @end
  38. NS_ASSUME_NONNULL_END
  39. #endif