FBSDKAppLinkProtocol.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. @protocol FBSDKAppLinkTarget;
  11. NS_ASSUME_NONNULL_BEGIN
  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(_AppLinkProtocol)
  18. @protocol FBSDKAppLink
  19. /// The URL from which this FBSDKAppLink was derived
  20. @property (nullable, nonatomic, readonly, strong) NSURL *sourceURL;
  21. /**
  22. The ordered list of targets applicable to this platform that will be used
  23. for navigation.
  24. */
  25. @property (nonatomic, readonly, copy) NSArray<id<FBSDKAppLinkTarget>> *targets;
  26. /// The fallback web URL to use if no targets are installed on this device.
  27. @property (nullable, nonatomic, readonly, strong) NSURL *webURL;
  28. /// return if this AppLink is to go back to referrer.
  29. @property (nonatomic, readonly, getter = isBackToReferrer, assign) BOOL backToReferrer;
  30. @end
  31. NS_ASSUME_NONNULL_END
  32. #endif