commit | author | age
|
e0ec42
|
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 |
NS_ASSUME_NONNULL_BEGIN |
|
14 |
|
|
15 |
/// A protocol to describe an AppLinkTarget |
|
16 |
NS_SWIFT_NAME(AppLinkTargetProtocol) |
|
17 |
@protocol FBSDKAppLinkTarget |
|
18 |
|
|
19 |
// UNCRUSTIFY_FORMAT_OFF |
|
20 |
+ (instancetype)appLinkTargetWithURL:(nullable NSURL *)url |
|
21 |
appStoreId:(nullable NSString *)appStoreId |
|
22 |
appName:(NSString *)appName |
|
23 |
NS_SWIFT_NAME(init(url:appStoreId:appName:)); |
|
24 |
// UNCRUSTIFY_FORMAT_ON |
|
25 |
|
|
26 |
/// The URL prefix for this app link target |
|
27 |
@property (nullable, nonatomic, readonly) NSURL *URL; |
|
28 |
|
|
29 |
/// The app ID for the app store |
|
30 |
@property (nullable, nonatomic, readonly, copy) NSString *appStoreId; |
|
31 |
|
|
32 |
/// The name of the app |
|
33 |
@property (nonatomic, readonly, copy) NSString *appName; |
|
34 |
|
|
35 |
@end |
|
36 |
|
|
37 |
NS_ASSUME_NONNULL_END |
|
38 |
|
|
39 |
#endif |