lpw
2024-06-28 2a6e182ea4428bff2e16f033c28850f3a02a93a9
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/FBSDKAppEventsStatePersisting.h>
10 #import <Foundation/Foundation.h>
11
12 @class FBSDKAppEventsState;
13
14 NS_ASSUME_NONNULL_BEGIN
15
16 /**
17  Internal type exposed to facilitate transition to Swift.
18  API Subject to change or removal without warning. Do not use.
19
20  @warning INTERNAL - DO NOT USE
21  */
22 NS_SWIFT_NAME(_AppEventsStateManager)
23 @interface FBSDKAppEventsStateManager : NSObject <FBSDKAppEventsStatePersisting>
24
25 @property (class, nonatomic, readonly) FBSDKAppEventsStateManager *shared;
26
27 - (void)clearPersistedAppEventsStates;
28
29 // reads all saved event states, appends the param, and writes them all.
30 - (void)persistAppEventsData:(FBSDKAppEventsState *)appEventsState;
31
32 // returns the array of saved app event states and deletes them.
33 - (NSArray<FBSDKAppEventsState *> *)retrievePersistedAppEventsStates;
34
35 @end
36 NS_ASSUME_NONNULL_END