BFAppLinkTarget.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2014, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #import <Foundation/Foundation.h>
  11. /*!
  12. Represents a target defined in App Link metadata, consisting of at least
  13. a URL, and optionally an App Store ID and name.
  14. */
  15. @interface BFAppLinkTarget : NSObject
  16. /*! Creates a BFAppLinkTarget with the given app site and target URL. */
  17. + (instancetype)appLinkTargetWithURL:(NSURL *)url
  18. appStoreId:(NSString *)appStoreId
  19. appName:(NSString *)appName;
  20. /*! The URL prefix for this app link target */
  21. @property (nonatomic, strong, readonly) NSURL *URL;
  22. /*! The app ID for the app store */
  23. @property (nonatomic, copy, readonly) NSString *appStoreId;
  24. /*! The name of the app */
  25. @property (nonatomic, copy, readonly) NSString *appName;
  26. @end