lpw
2023-07-20 80f7cc0c18ce7e590a4c14cd1011a82b296770f5
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/FBSDKConstants.h>
10 #import <Foundation/Foundation.h>
11
12 NS_ASSUME_NONNULL_BEGIN
13
14 /**
15  Internal type exposed to facilitate transition to Swift.
16  API Subject to change or removal without warning. Do not use.
17
18  @warning INTERNAL - DO NOT USE
19  */
20 NS_SWIFT_NAME(_ErrorRecoveryConfiguration)
21 @interface FBSDKErrorRecoveryConfiguration : NSObject <NSCopying, NSSecureCoding>
22
23 @property (nonatomic, readonly) NSString *localizedRecoveryDescription;
24 @property (nonatomic, readonly) NSArray<NSString *> *localizedRecoveryOptionDescriptions;
25 @property (nonatomic, readonly) FBSDKGraphRequestError errorCategory;
26 @property (nonatomic, readonly) NSString *recoveryActionName;
27
28 - (instancetype)init NS_UNAVAILABLE;
29 + (instancetype)new NS_UNAVAILABLE;
30
31 - (instancetype)initWithRecoveryDescription:(NSString *)description
32                          optionDescriptions:(NSArray<NSString *> *)optionDescriptions
33                                    category:(FBSDKGraphRequestError)category
34                          recoveryActionName:(NSString *)recoveryActionName NS_DESIGNATED_INITIALIZER;
35 @end
36
37 NS_ASSUME_NONNULL_END