lpw
2024-09-25 b967348d7f23fac77c85a3164b696eab09d834a8
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/FBSDKSourceApplicationTracking.h>
10 #import <FBSDKCoreKit/FBSDKTimeSpentRecording.h>
11 #import <Foundation/Foundation.h>
12
13 @protocol FBSDKEventLogging;
14 @protocol FBSDKServerConfigurationProviding;
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 // Class to encapsulate persisting of time spent data collected by [FBSDKAppEvents.shared activateApp].  The activate app App Event is
25 // logged when restore: is called with sufficient time since the last deactivation.
26 NS_SWIFT_NAME(_TimeSpentData)
27 @interface FBSDKTimeSpentData : NSObject <FBSDKSourceApplicationTracking, FBSDKTimeSpentRecording>
28
29 + (instancetype)new NS_UNAVAILABLE;
30 - (instancetype)init NS_UNAVAILABLE;
31
32 - (instancetype)initWithEventLogger:(id<FBSDKEventLogging>)eventLogger
33         serverConfigurationProvider:(id<FBSDKServerConfigurationProviding>)serverConfigurationProvider;
34
35 - (void)setSourceApplication:(nullable NSString *)sourceApplication openURL:(nullable NSURL *)url;
36 - (void)setSourceApplication:(nullable NSString *)sourceApplication isFromAppLink:(BOOL)isFromAppLink;
37 - (void)registerAutoResetSourceApplication;
38 - (void)suspend;
39 - (void)restore:(BOOL)calledFromActivateApp;
40
41 @end
42
43 NS_ASSUME_NONNULL_END