lpw
2023-06-03 e0ec4235cc7b8d05ec1aaa414ec2d2cac798d74e
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 <Foundation/Foundation.h>
10
11 #import <FBSDKCoreKit/FBSDKAppEventName.h>
12 #import <FBSDKCoreKit/FBSDKAppEventParameterName.h>
13 #import <FBSDKCoreKit/FBSDKAppEventsFlushReason.h>
14 #import <FBSDKCoreKit/FBSDKAppEventsFlushBehavior.h>
15
16 @class FBSDKAccessToken;
17
18
19 /**
20  Internal Type exposed to facilitate transition to Swift.
21  API Subject to change or removal without warning. Do not use.
22
23  @warning INTERNAL - DO NOT USE
24  */
25
26 NS_ASSUME_NONNULL_BEGIN
27
28 NS_SWIFT_NAME(EventLogging)
29 @protocol FBSDKEventLogging
30
31 @property (nonatomic, readonly) FBSDKAppEventsFlushBehavior flushBehavior;
32
33 - (void)flushForReason:(FBSDKAppEventsFlushReason)flushReason;
34
35 - (void)logEvent:(FBSDKAppEventName)eventName
36       parameters:(nullable NSDictionary<FBSDKAppEventParameterName, id> *)parameters;
37
38 - (void)logEvent:(FBSDKAppEventName)eventName
39       valueToSum:(double)valueToSum
40       parameters:(nullable NSDictionary<FBSDKAppEventParameterName, id> *)parameters;
41
42 - (void)logInternalEvent:(FBSDKAppEventName)eventName
43       isImplicitlyLogged:(BOOL)isImplicitlyLogged;
44
45 - (void)logInternalEvent:(FBSDKAppEventName)eventName
46               parameters:(nullable NSDictionary<FBSDKAppEventParameterName, id> *)parameters
47       isImplicitlyLogged:(BOOL)isImplicitlyLogged;
48
49 - (void)logInternalEvent:(FBSDKAppEventName)eventName
50               parameters:(nullable NSDictionary<FBSDKAppEventParameterName, id> *)parameters
51       isImplicitlyLogged:(BOOL)isImplicitlyLogged
52              accessToken:(nullable FBSDKAccessToken *)accessToken;
53
54 - (void)logInternalEvent:(FBSDKAppEventName)eventName
55               valueToSum:(double)valueToSum
56       isImplicitlyLogged:(BOOL)isImplicitlyLogged;
57
58 @end
59
60 NS_ASSUME_NONNULL_END