commit | author | age
|
2e29a3
|
1 |
/* |
L |
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 |
|
|
9 |
#if !TARGET_OS_TV |
|
10 |
|
|
11 |
#import <Foundation/Foundation.h> |
|
12 |
|
|
13 |
#import <FBSDKCoreKit/FBSDKAppLinkTargetProtocol.h> |
|
14 |
|
|
15 |
NS_ASSUME_NONNULL_BEGIN |
|
16 |
|
|
17 |
/** |
|
18 |
Represents a target defined in App Link metadata, consisting of at least |
|
19 |
a URL, and optionally an App Store ID and name. |
|
20 |
*/ |
|
21 |
NS_SWIFT_NAME(AppLinkTarget) |
|
22 |
@interface FBSDKAppLinkTarget : NSObject <FBSDKAppLinkTarget> |
|
23 |
|
|
24 |
- (instancetype)init NS_UNAVAILABLE; |
|
25 |
+ (instancetype)new NS_UNAVAILABLE; |
|
26 |
|
|
27 |
/** Creates a FBSDKAppLinkTarget with the given app site and target URL. */ |
|
28 |
// UNCRUSTIFY_FORMAT_OFF |
|
29 |
+ (instancetype)appLinkTargetWithURL:(nullable NSURL *)url |
|
30 |
appStoreId:(nullable NSString *)appStoreId |
|
31 |
appName:(NSString *)appName |
|
32 |
NS_SWIFT_NAME(init(url:appStoreId:appName:)); |
|
33 |
// UNCRUSTIFY_FORMAT_ON |
|
34 |
|
|
35 |
/** The URL prefix for this app link target */ |
|
36 |
@property (nullable, nonatomic, readonly, strong) NSURL *URL; |
|
37 |
|
|
38 |
/** The app ID for the app store */ |
|
39 |
@property (nullable, nonatomic, readonly, copy) NSString *appStoreId; |
|
40 |
|
|
41 |
/** The name of the app */ |
|
42 |
@property (nonatomic, readonly, copy) NSString *appName; |
|
43 |
|
|
44 |
@end |
|
45 |
|
|
46 |
NS_ASSUME_NONNULL_END |
|
47 |
|
|
48 |
#endif |