FBSDKAppLinkTargetProtocol.h 1003 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. NS_ASSUME_NONNULL_BEGIN
  11. /// A protocol to describe an AppLinkTarget
  12. NS_SWIFT_NAME(AppLinkTargetProtocol)
  13. @protocol FBSDKAppLinkTarget
  14. // UNCRUSTIFY_FORMAT_OFF
  15. + (instancetype)appLinkTargetWithURL:(nullable NSURL *)url
  16. appStoreId:(nullable NSString *)appStoreId
  17. appName:(NSString *)appName
  18. NS_SWIFT_NAME(init(url:appStoreId:appName:));
  19. // UNCRUSTIFY_FORMAT_ON
  20. /// The URL prefix for this app link target
  21. @property (nullable, nonatomic, readonly) NSURL *URL;
  22. /// The app ID for the app store
  23. @property (nullable, nonatomic, readonly, copy) NSString *appStoreId;
  24. /// The name of the app
  25. @property (nonatomic, readonly, copy) NSString *appName;
  26. @end
  27. NS_ASSUME_NONNULL_END
  28. #endif