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 |
NS_ASSUME_NONNULL_BEGIN |
|
14 |
|
|
15 |
@class FBSDKAppLink; |
|
16 |
|
|
17 |
/** |
|
18 |
Describes the callback for appLinkFromURLInBackground. |
|
19 |
@param appLink the FBSDKAppLink representing the deferred App Link |
|
20 |
@param error the error during the request, if any |
|
21 |
*/ |
|
22 |
typedef void (^ FBSDKAppLinkBlock)(FBSDKAppLink *_Nullable appLink, NSError *_Nullable error) |
|
23 |
NS_SWIFT_NAME(AppLinkBlock); |
|
24 |
|
|
25 |
/** |
|
26 |
Implement this protocol to provide an alternate strategy for resolving |
|
27 |
App Links that may include pre-fetching, caching, or querying for App Link |
|
28 |
data from an index provided by a service provider. |
|
29 |
*/ |
|
30 |
NS_SWIFT_NAME(AppLinkResolving) |
|
31 |
@protocol FBSDKAppLinkResolving <NSObject> |
|
32 |
|
|
33 |
/** |
|
34 |
Asynchronously resolves App Link data for a given URL. |
|
35 |
|
|
36 |
@param url The URL to resolve into an App Link. |
|
37 |
@param handler The completion block that will return an App Link for the given URL. |
|
38 |
*/ |
|
39 |
- (void)appLinkFromURL:(NSURL *)url handler:(FBSDKAppLinkBlock)handler |
|
40 |
NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); |
|
41 |
|
|
42 |
@end |
|
43 |
|
|
44 |
NS_ASSUME_NONNULL_END |
|
45 |
|
|
46 |
#endif |