lpw
2024-04-15 97fc0a41111c5a929ee8be9d6511775697ffa760
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/FBSDKAppEventParametersExtracting.h>
10 #import <FBSDKCoreKit/FBSDKAppEventsFlushReason.h>
11 #import <FBSDKCoreKit/FBSDKAppEventsUtilityProtocol.h>
12 #import <FBSDKCoreKit/FBSDKLoggingNotifying.h>
13 #import <Foundation/Foundation.h>
14
15 NS_ASSUME_NONNULL_BEGIN
16
17 /**
18  Internal type exposed to facilitate transition to Swift.
19  API Subject to change or removal without warning. Do not use.
20
21  @warning INTERNAL - DO NOT USE
22  */
23 NS_SWIFT_NAME(_AppEventsUtility)
24 @interface FBSDKAppEventsUtility : NSObject <FBSDKAdvertiserIDProviding, FBSDKAppEventDropDetermining, FBSDKAppEventParametersExtracting, FBSDKAppEventsUtility, FBSDKLoggingNotifying>
25
26 #if !DEBUG
27 - (instancetype)init NS_UNAVAILABLE;
28 + (instancetype)new NS_UNAVAILABLE;
29 #endif
30
31 @property (class, nonatomic) FBSDKAppEventsUtility *shared;
32 @property (nullable, nonatomic, readonly, copy) NSString *advertiserID;
33 @property (nonatomic, readonly) BOOL isDebugBuild;
34 @property (nonatomic, readonly) BOOL shouldDropAppEvents;
35 @property (nullable, nonatomic) id<FBSDKAppEventsConfigurationProviding> appEventsConfigurationProvider;
36 @property (nullable, nonatomic) id<FBSDKDeviceInformationProviding> deviceInformationProvider;
37 @property (nullable, nonatomic) id<FBSDKSettings> settings;
38 @property (nullable, nonatomic) id<FBSDKInternalUtility> internalUtility;
39 @property (nullable, nonatomic) id<FBSDKErrorCreating> errorFactory;
40 @property (nullable, nonatomic) id<FBSDKDataPersisting> dataStore;
41
42 - (BOOL)isSensitiveUserData:(NSString *)text;
43 - (BOOL)isStandardEvent:(nullable NSString *)event;
44
45 // UNCRUSTIFY_FORMAT_OFF
46 - (void)configureWithAppEventsConfigurationProvider:(id<FBSDKAppEventsConfigurationProviding>)appEventsConfigurationProvider
47                           deviceInformationProvider:(id<FBSDKDeviceInformationProviding>)deviceInformationProvider
48                                            settings:(id<FBSDKSettings>)settings
49                                     internalUtility:(id<FBSDKInternalUtility>)internalUtility
50                                        errorFactory:(id<FBSDKErrorCreating>)errorFactory
51                                           dataStore:(id<FBSDKDataPersisting>)dataStore
52 NS_SWIFT_NAME(configure(appEventsConfigurationProvider:deviceInformationProvider:settings:internalUtility:errorFactory:dataStore:));
53 // UNCRUSTIFY_FORMAT_ON
54
55 #if DEBUG
56 - (void)reset;
57 #endif
58
59 @end
60
61 NS_ASSUME_NONNULL_END