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/FBSDKErrorConfigurationProtocol.h> |
|
10 |
#import <Foundation/Foundation.h> |
|
11 |
|
|
12 |
@protocol FBSDKGraphRequest; |
|
13 |
|
|
14 |
NS_ASSUME_NONNULL_BEGIN |
|
15 |
|
|
16 |
/** |
|
17 |
Internal type exposed to facilitate transition to Swift. |
|
18 |
API Subject to change or removal without warning. Do not use. |
|
19 |
|
|
20 |
@warning INTERNAL - DO NOT USE |
|
21 |
*/ |
|
22 |
NS_SWIFT_NAME(_DecodableErrorConfiguration) |
|
23 |
@protocol FBSDKDecodableErrorConfiguration <NSObject> |
|
24 |
|
|
25 |
- (instancetype)initWithDictionary:(NSDictionary<NSString *, id> *)dictionary; |
|
26 |
- (void)updateWithArray:(NSArray<NSDictionary<NSString *, id> *> *)array; |
|
27 |
|
|
28 |
@end |
|
29 |
|
|
30 |
/** |
|
31 |
Internal type exposed to facilitate transition to Swift. |
|
32 |
API Subject to change or removal without warning. Do not use. |
|
33 |
|
|
34 |
@warning INTERNAL - DO NOT USE |
|
35 |
*/ |
|
36 |
NS_SWIFT_NAME(_ErrorConfiguration) |
|
37 |
@interface FBSDKErrorConfiguration : NSObject < |
|
38 |
NSSecureCoding, |
|
39 |
NSCopying, |
|
40 |
FBSDKErrorConfiguration, |
|
41 |
FBSDKDecodableErrorConfiguration |
|
42 |
> |
|
43 |
|
|
44 |
- (instancetype)init NS_UNAVAILABLE; |
|
45 |
+ (instancetype)new NS_UNAVAILABLE; |
|
46 |
|
|
47 |
// initialize from optional dictionary of existing configurations. If not supplied a fallback will be created. |
|
48 |
- (instancetype)initWithDictionary:(nullable NSDictionary<NSString *, id> *)dictionary NS_DESIGNATED_INITIALIZER; |
|
49 |
|
|
50 |
// parses the array (supplied from app settings endpoint) |
|
51 |
- (void)updateWithArray:(NSArray<NSDictionary<NSString *, id> *> *)array; |
|
52 |
|
|
53 |
// NSString "code" instances support "*" wildcard semantics (nil is treated as "*" also) |
|
54 |
// 'request' is optional, typically for identifying special graph request semantics (e.g., no recovery for client token) |
|
55 |
- (nullable FBSDKErrorRecoveryConfiguration *)recoveryConfigurationForCode:(nullable NSString *)code subcode:(nullable NSString *)subcode request:(id<FBSDKGraphRequest>)request; |
|
56 |
|
|
57 |
@end |
|
58 |
|
|
59 |
NS_ASSUME_NONNULL_END |