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 |
#if !TARGET_OS_TV |
|
10 |
|
|
11 |
#import <FBAEMKit/FBAEMKit-Swift.h> |
|
12 |
#import <FBSDKCoreKit/FBSDKAppEventsReporter.h> |
|
13 |
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h> |
|
14 |
#import <Foundation/Foundation.h> |
|
15 |
|
|
16 |
NS_ASSUME_NONNULL_BEGIN |
|
17 |
|
|
18 |
/** |
|
19 |
Internal type exposed to facilitate transition to Swift. |
|
20 |
API Subject to change or removal without warning. Do not use. |
|
21 |
|
|
22 |
@warning INTERNAL - DO NOT USE |
|
23 |
*/ |
|
24 |
NS_SWIFT_NAME(_SKAdNetworkReporterV2) |
|
25 |
@interface FBSDKSKAdNetworkReporterV2 : NSObject <FBSKAdNetworkReporting, FBSDKAppEventsReporter> |
|
26 |
|
|
27 |
@property (nonatomic) id<FBSDKGraphRequestFactory> graphRequestFactory; |
|
28 |
@property (nonatomic) id<FBSDKDataPersisting> dataStore; |
|
29 |
@property (nonatomic) Class<FBSDKConversionValueUpdating> conversionValueUpdater; |
|
30 |
|
|
31 |
- (instancetype)init NS_UNAVAILABLE; |
|
32 |
+ (instancetype)new NS_UNAVAILABLE; |
|
33 |
|
|
34 |
// UNCRUSTIFY_FORMAT_OFF |
|
35 |
- (instancetype)initWithGraphRequestFactory:(id<FBSDKGraphRequestFactory>)graphRequestFactory |
|
36 |
dataStore:(id<FBSDKDataPersisting>)dataStore |
|
37 |
conversionValueUpdater:(Class<FBSDKConversionValueUpdating>)conversionValueUpdater |
|
38 |
NS_SWIFT_NAME(init(graphRequestFactory:dataStore:conversionValueUpdater:)); |
|
39 |
// UNCRUSTIFY_FORMAT_ON |
|
40 |
|
|
41 |
- (void)enable; |
|
42 |
|
|
43 |
- (void)recordAndUpdateEvent:(NSString *)event |
|
44 |
currency:(nullable NSString *)currency |
|
45 |
value:(nullable NSNumber *)value; |
|
46 |
|
|
47 |
- (BOOL)shouldCutoff; |
|
48 |
|
|
49 |
- (BOOL)isReportingEvent:(NSString *)event; |
|
50 |
|
|
51 |
- (void)checkAndRevokeTimer; |
|
52 |
|
|
53 |
@end |
|
54 |
|
|
55 |
NS_ASSUME_NONNULL_END |
|
56 |
|
|
57 |
#endif |