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/FBSDKEventsProcessing.h> |
|
10 |
#import <Foundation/Foundation.h> |
|
11 |
|
|
12 |
NS_ASSUME_NONNULL_BEGIN |
|
13 |
|
|
14 |
/** |
|
15 |
Internal type exposed to facilitate transition to Swift. |
|
16 |
API Subject to change or removal without warning. Do not use. |
|
17 |
|
|
18 |
@warning INTERNAL - DO NOT USE |
|
19 |
*/ |
|
20 |
// this type is not thread safe. |
|
21 |
NS_SWIFT_NAME(_AppEventsState) |
|
22 |
@interface FBSDKAppEventsState : NSObject <NSCopying, NSSecureCoding> |
|
23 |
|
|
24 |
@property (class, nullable, nonatomic) NSArray<id<FBSDKEventsProcessing>> *eventProcessors; |
|
25 |
|
|
26 |
@property (nonatomic, readonly, copy) NSArray<NSDictionary<NSString *, id> *> *events; |
|
27 |
@property (nonatomic, readonly, assign) NSUInteger numSkipped; |
|
28 |
@property (nonatomic, readonly, copy) NSString *tokenString; |
|
29 |
@property (nonatomic, readonly, copy) NSString *appID; |
|
30 |
@property (nonatomic, readonly, getter = areAllEventsImplicit) BOOL allEventsImplicit; |
|
31 |
|
|
32 |
- (instancetype)init NS_UNAVAILABLE; |
|
33 |
+ (instancetype)new NS_UNAVAILABLE; |
|
34 |
- (instancetype)initWithToken:(nullable NSString *)tokenString appID:(nullable NSString *)appID NS_DESIGNATED_INITIALIZER; |
|
35 |
|
|
36 |
- (void)addEvent:(NSDictionary<NSString *, id> *)eventDictionary isImplicit:(BOOL)isImplicit; |
|
37 |
- (void)addEventsFromAppEventState:(FBSDKAppEventsState *)appEventsState; |
|
38 |
- (BOOL)isCompatibleWithAppEventsState:(nullable FBSDKAppEventsState *)appEventsState; |
|
39 |
- (BOOL)isCompatibleWithTokenString:(NSString *)tokenString appID:(NSString *)appID; |
|
40 |
- (NSString *)JSONStringForEventsIncludingImplicitEvents:(BOOL)includeImplicitEvents; |
|
41 |
- (NSString *)extractReceiptData; |
|
42 |
|
|
43 |
@end |
|
44 |
|
|
45 |
NS_ASSUME_NONNULL_END |