FBSDKInternalURLOpener.h 811 B

12345678910111213141516171819202122232425262728293031
  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 <Foundation/Foundation.h>
  9. #import <UIKit/UIApplication.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. /**
  12. Internal type exposed to facilitate transition to Swift.
  13. API Subject to change or removal without warning. Do not use.
  14. @warning INTERNAL - DO NOT USE
  15. */
  16. NS_SWIFT_NAME(_InternalURLOpener)
  17. @protocol FBSDKInternalURLOpener
  18. - (BOOL)canOpenURL:(NSURL *)url;
  19. - (BOOL)openURL:(NSURL *)url;
  20. - (void) openURL:(NSURL *)url
  21. options:(NSDictionary<UIApplicationOpenExternalURLOptionsKey, id> *)options
  22. completionHandler:(nullable void (^)(BOOL success))completion;
  23. @end
  24. NS_ASSUME_NONNULL_END