FBSDKURLOpener.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #import <TargetConditionals.h>
  9. #if !TARGET_OS_TV
  10. NS_ASSUME_NONNULL_BEGIN
  11. @protocol FBSDKURLOpening;
  12. /**
  13. Internal Type exposed to facilitate transition to Swift.
  14. API Subject to change or removal without warning. Do not use.
  15. @warning INTERNAL - DO NOT USE
  16. */
  17. NS_SWIFT_NAME(URLOpener)
  18. @protocol FBSDKURLOpener
  19. - (void)openURL:(NSURL *)url
  20. sender:(nullable id<FBSDKURLOpening>)sender
  21. handler:(FBSDKSuccessBlock)handler;
  22. // UNCRUSTIFY_FORMAT_OFF
  23. - (void)openURLWithSafariViewController:(NSURL *)url
  24. sender:(nullable id<FBSDKURLOpening>)sender
  25. fromViewController:(nullable UIViewController *)fromViewController
  26. handler:(FBSDKSuccessBlock)handler
  27. NS_SWIFT_NAME(openURLWithSafariViewController(url:sender:from:handler:));
  28. // UNCRUSTIFY_FORMAT_ON
  29. @end
  30. NS_ASSUME_NONNULL_END
  31. #endif