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 |
/** |
|
14 |
A formal protocol very similar to the informal protocol NSErrorRecoveryAttempting |
|
15 |
Internal use only |
|
16 |
|
|
17 |
@warning INTERNAL - DO NOT USE |
|
18 |
*/ |
|
19 |
NS_SWIFT_NAME(ErrorRecoveryAttempting) |
|
20 |
@protocol FBSDKErrorRecoveryAttempting <NSObject> |
|
21 |
|
|
22 |
/** |
|
23 |
Attempt the recovery |
|
24 |
@param error the error |
|
25 |
@param completionHandler the handler called upon completion of error recovery |
|
26 |
|
|
27 |
Attempt recovery from the error, and call the completion handler. The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. |
|
28 |
*/ |
|
29 |
- (void)attemptRecoveryFromError:(NSError *)error |
|
30 |
completionHandler:(void (^)(BOOL didRecover))completionHandler; |
|
31 |
@end |
|
32 |
|
|
33 |
NS_ASSUME_NONNULL_END |