commit | author | age
|
bad748
|
1 |
/* |
W |
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 |
|
|
11 |
#import <Foundation/Foundation.h> |
|
12 |
|
|
13 |
/*! |
|
14 |
Represents a target defined in App Link metadata, consisting of at least |
|
15 |
a URL, and optionally an App Store ID and name. |
|
16 |
*/ |
|
17 |
@interface BFAppLinkTarget : NSObject |
|
18 |
|
|
19 |
/*! Creates a BFAppLinkTarget with the given app site and target URL. */ |
|
20 |
+ (instancetype)appLinkTargetWithURL:(NSURL *)url |
|
21 |
appStoreId:(NSString *)appStoreId |
|
22 |
appName:(NSString *)appName; |
|
23 |
|
|
24 |
/*! The URL prefix for this app link target */ |
|
25 |
@property (nonatomic, strong, readonly) NSURL *URL; |
|
26 |
|
|
27 |
/*! The app ID for the app store */ |
|
28 |
@property (nonatomic, copy, readonly) NSString *appStoreId; |
|
29 |
|
|
30 |
/*! The name of the app */ |
|
31 |
@property (nonatomic, copy, readonly) NSString *appName; |
|
32 |
|
|
33 |
@end |