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/FBSDKServerConfigurationProviding.h> |
|
10 |
#import <Foundation/Foundation.h> |
|
11 |
|
|
12 |
#define FBSDK_SERVER_CONFIGURATION_MANAGER_CACHE_TIMEOUT (60 * 60) |
|
13 |
|
|
14 |
@protocol FBSDKGraphRequestFactory; |
|
15 |
@protocol FBSDKGraphRequestConnectionFactory; |
|
16 |
@protocol FBSDKDialogConfigurationMapBuilding; |
|
17 |
|
|
18 |
NS_ASSUME_NONNULL_BEGIN |
|
19 |
|
|
20 |
/** |
|
21 |
Internal type exposed to facilitate transition to Swift. |
|
22 |
API Subject to change or removal without warning. Do not use. |
|
23 |
|
|
24 |
@warning INTERNAL - DO NOT USE |
|
25 |
*/ |
|
26 |
NS_SWIFT_NAME(_ServerConfigurationManager) |
|
27 |
@interface FBSDKServerConfigurationManager : NSObject <FBSDKServerConfigurationProviding> |
|
28 |
|
|
29 |
@property (class, readonly) FBSDKServerConfigurationManager *shared; |
|
30 |
|
|
31 |
+ (instancetype)new NS_UNAVAILABLE; |
|
32 |
- (instancetype)init NS_UNAVAILABLE; |
|
33 |
|
|
34 |
@property (nullable, nonatomic) id<FBSDKGraphRequestFactory> graphRequestFactory; |
|
35 |
@property (nullable, nonatomic) id<FBSDKGraphRequestConnectionFactory> graphRequestConnectionFactory; |
|
36 |
@property (nullable, nonatomic) id<FBSDKDialogConfigurationMapBuilding> dialogConfigurationMapBuilder; |
|
37 |
|
|
38 |
// UNCRUSTIFY_FORMAT_OFF |
|
39 |
- (void)configureWithGraphRequestFactory:(id<FBSDKGraphRequestFactory>)graphRequestFactory |
|
40 |
graphRequestConnectionFactory:(id<FBSDKGraphRequestConnectionFactory>)graphRequestConnectionFactory |
|
41 |
dialogConfigurationMapBuilder:(id<FBSDKDialogConfigurationMapBuilding>)dialogConfigurationMapBuilder |
|
42 |
NS_SWIFT_NAME(configure(graphRequestFactory:graphRequestConnectionFactory:dialogConfigurationMapBuilder:)); |
|
43 |
// UNCRUSTIFY_FORMAT_ON |
|
44 |
|
|
45 |
- (void)clearCache; |
|
46 |
|
|
47 |
@end |
|
48 |
|
|
49 |
NS_ASSUME_NONNULL_END |