lpw
2024-09-25 b967348d7f23fac77c85a3164b696eab09d834a8
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 <Foundation/Foundation.h>
10
11 #import <FBSDKCoreKit_Basics/FBSDKLinking.h>
12
13 NS_ASSUME_NONNULL_BEGIN
14
15 /// An internal protocol used to describe a network task
16 NS_SWIFT_NAME(NetworkTask)
17 @protocol FBSDKNetworkTask <NSObject>
18
19 @property (readonly) NSURLSessionTaskState fb_state;
20
21 - (void)fb_resume;
22 - (void)fb_cancel;
23
24 @end
25
26 FB_LINK_CATEGORY_INTERFACE(NSURLSessionTask, NetworkTask)
27 @interface NSURLSessionTask (NetworkTask) <FBSDKNetworkTask>
28
29 @end
30
31 NS_ASSUME_NONNULL_END