12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /*
- * Copyright (c) 2014, Facebook, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
- #import <Foundation/Foundation.h>
- /*! The version of the App Link protocol that this library supports */
- FOUNDATION_EXPORT NSString *const BFAppLinkVersion;
- /*!
- Contains App Link metadata relevant for navigation on this device
- derived from the HTML at a given URL.
- */
- @interface BFAppLink : NSObject
- /*!
- Creates a BFAppLink with the given list of BFAppLinkTargets and target URL.
- Generally, this will only be used by implementers of the BFAppLinkResolving protocol,
- as these implementers will produce App Link metadata for a given URL.
- @param sourceURL the URL from which this App Link is derived
- @param targets an ordered list of BFAppLinkTargets for this platform derived
- from App Link metadata.
- @param webURL the fallback web URL, if any, for the app link.
- */
- + (instancetype)appLinkWithSourceURL:(NSURL *)sourceURL
- targets:(NSArray *)targets
- webURL:(NSURL *)webURL;
- /*! The URL from which this BFAppLink was derived */
- @property (nonatomic, strong, readonly) NSURL *sourceURL;
- /*!
- The ordered list of targets applicable to this platform that will be used
- for navigation.
- */
- @property (nonatomic, copy, readonly) NSArray *targets;
- /*! The fallback web URL to use if no targets are installed on this device. */
- @property (nonatomic, strong, readonly) NSURL *webURL;
- @end
|