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 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
NS_ASSUME_NONNULL_BEGIN |
|
12 |
|
|
13 |
/// An internal protocol used to describe a session data task |
|
14 |
NS_SWIFT_NAME(SessionDataTask) |
|
15 |
@protocol FBSDKSessionDataTask <NSObject> |
|
16 |
|
|
17 |
@property (readonly) NSURLSessionTaskState state; |
|
18 |
|
|
19 |
- (void)resume; |
|
20 |
- (void)cancel; |
|
21 |
|
|
22 |
@end |
|
23 |
|
|
24 |
/// An internal protocol used to describe a url session |
|
25 |
NS_SWIFT_NAME(SessionProviding) |
|
26 |
@protocol FBSDKSessionProviding <NSObject> |
|
27 |
|
|
28 |
- (id<FBSDKSessionDataTask>)dataTaskWithRequest:(NSURLRequest *)request |
|
29 |
completionHandler:(void (^)(NSData *_Nullable data, NSURLResponse *_Nullable response, NSError *_Nullable error))completionHandler; |
|
30 |
|
|
31 |
@end |
|
32 |
|
|
33 |
NS_ASSUME_NONNULL_END |