lpw
2024-06-24 14dac3416fa64cec3ca6523835297bf7a4d7d9bd
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 #import <FBSDKCoreKit_Basics/FBSDKLinking.h>
10 #import <FBSDKCoreKit_Basics/FBSDKNetworkTask.h>
11
12 #import <Foundation/Foundation.h>
13
14 NS_ASSUME_NONNULL_BEGIN
15
16 /// An internal protocol used to describe a url session
17 NS_SWIFT_NAME(URLSessionProviding)
18 @protocol FBSDKURLSessionProviding <NSObject>
19
20 - (id<FBSDKNetworkTask>)fb_dataTaskWithRequest:(NSURLRequest *)request
21                              completionHandler:(void (^)(NSData *_Nullable data, NSURLResponse *_Nullable response, NSError *_Nullable error))completionHandler;
22
23 @end
24
25 FB_LINK_CATEGORY_INTERFACE(NSURLSession, URLSessionProviding)
26 @interface NSURLSession (URLSessionProviding) <FBSDKURLSessionProviding>
27
28 @end
29
30 NS_ASSUME_NONNULL_END