lpw
2022-02-15 2e29a3a585524a054640bb6e7bdf26fe77ba1f17
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 <FBSDKCoreKit/FBSDKAdvertisingTrackingStatus.h>
10 #import <FBSDKCoreKit/FBSDKLoggingBehavior.h>
11
12 NS_ASSUME_NONNULL_BEGIN
13
14 NS_SWIFT_NAME(SettingsProtocol)
15 @protocol FBSDKSettings
16
17 @property (nullable, nonatomic, copy) NSString *appID;
18 @property (nullable, nonatomic, copy) NSString *clientToken;
19 @property (nullable, nonatomic, copy) NSString *userAgentSuffix;
20 @property (nonatomic, readonly, copy) NSString *sdkVersion;
21 @property (nullable, nonatomic, copy) NSString *displayName;
22 @property (nullable, nonatomic, copy) NSString *facebookDomainPart;
23 @property (nonnull, nonatomic, copy) NSSet<FBSDKLoggingBehavior> *loggingBehaviors;
24 @property (class, nonnull, nonatomic, copy) NSSet<FBSDKLoggingBehavior> *loggingBehaviors
25   DEPRECATED_MSG_ATTRIBUTE("property class `loggingBehaviors` is deprecated and will be removed in the next major release, please use property instance`loggingBehaviors` instead");
26 @property (nullable, nonatomic, copy) NSString *appURLSchemeSuffix;
27 @property (nonatomic, readonly) BOOL isDataProcessingRestricted;
28 @property (nonatomic, readonly) BOOL isAutoLogAppEventsEnabled;
29 @property (nonatomic, getter = isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled;
30 @property (nonatomic, getter = isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled;
31 @property (nonatomic, readonly) BOOL isSetATETimeExceedsInstallTime;
32 @property (nonatomic, readonly) BOOL isSKAdNetworkReportEnabled;
33 @property (nonatomic, readonly) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus;
34 @property (nullable, nonatomic, readonly) NSDate *installTimestamp;
35 @property (nullable, nonatomic, readonly) NSDate *advertiserTrackingEnabledTimestamp;
36 @property (nonatomic) BOOL isEventDataUsageLimited;
37 @property (nonatomic) BOOL shouldUseTokenOptimizations;
38 @property (nonatomic, copy) NSString *graphAPIVersion;
39 @property (nonatomic) BOOL isGraphErrorRecoveryEnabled;
40 @property (nullable, nonatomic, readonly, copy) NSString *graphAPIDebugParamValue;
41 @property (nonatomic, getter = isAdvertiserTrackingEnabled) BOOL advertiserTrackingEnabled;
42 @property (nonatomic) BOOL shouldUseCachedValuesForExpensiveMetadata;
43 @property (nullable, nonatomic, readonly) NSDictionary<NSString *, id> *persistableDataProcessingOptions;
44
45 /**
46  Set the data processing options.
47
48  @param options list of options
49 */
50 - (void)setDataProcessingOptions:(nullable NSArray<NSString *> *)options;
51
52 /**
53  Set the data processing options.
54
55  @param options list of the options
56  @param country code of the country
57  @param state code of the state
58 */
59 - (void)setDataProcessingOptions:(nullable NSArray<NSString *> *)options
60                          country:(int)country
61                            state:(int)state;
62
63 @end
64
65 NS_ASSUME_NONNULL_END