lpw
2024-06-24 14dac3416fa64cec3ca6523835297bf7a4d7d9bd
commit | author | age
97fc0a 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 #import <FBSDKCoreKit/FBSDKDomainConfigurationProviding.h>
11 #import <FBSDKCoreKit/FBSDKGraphRequest.h>
12 #import <FBSDKCoreKit/FBSDKGraphRequestMetadata.h>
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(_DomainHandler)
23 @interface FBSDKDomainHandler : NSObject
24
25 + (instancetype)sharedInstance;
26
27 + (instancetype)new NS_UNAVAILABLE;
28 - (instancetype)init NS_UNAVAILABLE;
29
30 - (void)configureWithGraphRequestFactory:(id<FBSDKDomainConfigurationProviding>)domainConfigurationProvider
31                                 settings:(id<FBSDKSettings>)settings
32                                dataStore:(id<FBSDKDataPersisting>)dataStore
33                      graphRequestFactory:(id<FBSDKGraphRequestFactory>)graphRequestFactory
34            graphRequestConnectionFactory:(id<FBSDKGraphRequestConnectionFactory>)graphRequestConnectionFactory
35   NS_SWIFT_NAME(configure(domainConfigurationProvider:settings:dataStore:graphRequestFactory:graphRequestConnectionFactory:));
36
37 - (void)loadDomainConfigurationWithCompletionBlock:(nullable FBSDKDomainConfigurationBlock)completionBlock;
38
39 /**
40  Internal method exposed to facilitate transition to Swift.
41  API Subject to change or removal without warning. Do not use.
42
43  @warning INTERNAL - DO NOT USE
44  */
45 - (NSString *)getURLPrefixForSingleRequest:(id<FBSDKGraphRequest>)request
46                isAdvertiserTrackingEnabled:(BOOL)isATTOptIn;
47
48 /**
49  Internal method exposed to facilitate transition to Swift.
50  API Subject to change or removal without warning. Do not use.
51
52  @warning INTERNAL - DO NOT USE
53  */
54 - (NSString *)getURLPrefixForBatchRequest:(NSArray<FBSDKGraphRequestMetadata *> *)requestsMetaData
55               isAdvertiserTrackingEnabled:(BOOL)isATTOptIn;
56
57 /**
58  @method
59  
60  This method determines if the current authentication token is for the gaming domain
61  @return a BOOL indicating  if the current authentication token is for the gaming domain
62  */
63 + (BOOL)isAuthenticatedForGamingDomain;
64
65 + (NSString *)getCleanedGraphPathFromRequest:(id<FBSDKGraphRequest>)request;
66 - (nullable NSString *)getATTScopeEndpointForGraphPath:(NSString *)graphPath;
67 - (BOOL)isDomainHandlingEnabled;
68
69 @end
70
71 NS_ASSUME_NONNULL_END